libkmod 错误并解析模块名称 '['

libkmod 错误并解析模块名称 '['

运行 lsmod/(和其他 kmod 相关命令)时出现以下错误:

libkmod: ERROR ../libkmod/libkmod-config.c:489 kcmdline_parse_result: Ignoring bad option on kernel command line while parsing module name: '['
  • 我能否以某种方式找出这个模块名称正在被解析的位置?
  • 我怎样才能找出造成这一现象的原因?
  • 有办法调试这个吗?

笔记:

  • 我卸载了所有 nvidia 驱动程序
  • 系统:Ubuntu 18.04.4 LTS
  • 内核:5.3.0-51-通用

输出grep -Fr '[' /sys/modules

Binary file /sys/module/r8169/notes/.note.gnu.build-id matches
Binary file /sys/module/snd_hda_codec_hdmi/notes/.note.gnu.build-id matches
Binary file /sys/module/snd_hwdep/notes/.note.gnu.build-id matches
Binary file /sys/module/dell_wmi/notes/.note.gnu.build-id matches
Binary file /sys/module/intel_rapl_perf/notes/.note.gnu.build-id matches
/sys/module/pcie_aspm/parameters/policy:[default] performance powersave powersupersave 
Binary file /sys/module/mac80211/notes/.note.gnu.build-id matches
Binary file /sys/module/aes_x86_64/notes/.note.gnu.build-id matches
Binary file /sys/module/ttm/notes/.note.gnu.build-id matches
/sys/module/acpi/parameters/debug_level:ACPI_LV_INIT                0x00000001 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_DEBUG_OBJECT        0x00000002 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_INFO                0x00000004 [*]
/sys/module/acpi/parameters/debug_level:ACPI_LV_REPAIR              0x00000008 [*]
/sys/module/acpi/parameters/debug_level:ACPI_LV_TRACE_POINT         0x00000010 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_INIT_NAMES          0x00000020 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_PARSE               0x00000040 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_LOAD                0x00000080 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_DISPATCH            0x00000100 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_EXEC                0x00000200 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_NAMES               0x00000400 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_OPREGION            0x00000800 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_BFIELD              0x00001000 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_TABLES              0x00002000 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_VALUES              0x00004000 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_OBJECTS             0x00008000 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_RESOURCES           0x00010000 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_USER_REQUESTS       0x00020000 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_PACKAGE             0x00040000 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_ALLOCATIONS         0x00100000 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_FUNCTIONS           0x00200000 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_OPTIMIZATIONS       0x00400000 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_MUTEX               0x01000000 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_THREADS             0x02000000 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_IO                  0x04000000 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_INTERRUPTS          0x08000000 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_AML_DISASSEMBLE     0x10000000 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_VERBOSE_INFO        0x20000000 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_FULL_TABLES         0x40000000 [ ]
/sys/module/acpi/parameters/debug_level:ACPI_LV_EVENTS              0x80000000 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_UTILITIES              0x00000001 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_HARDWARE               0x00000002 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_EVENTS                 0x00000004 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_TABLES                 0x00000008 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_NAMESPACE              0x00000010 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_PARSER                 0x00000020 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_DISPATCHER             0x00000040 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_EXECUTER               0x00000080 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_RESOURCES              0x00000100 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_CA_DEBUGGER            0x00000200 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_OS_SERVICES            0x00000400 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_CA_DISASSEMBLER        0x00000800 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_COMPILER               0x00001000 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_TOOLS                  0x00002000 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_BUS_COMPONENT          0x00010000 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_AC_COMPONENT           0x00020000 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_BATTERY_COMPONENT      0x00040000 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_BUTTON_COMPONENT       0x00080000 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_SBS_COMPONENT          0x00100000 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_FAN_COMPONENT          0x00200000 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_PCI_COMPONENT          0x00400000 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_POWER_COMPONENT        0x00800000 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_CONTAINER_COMPONENT    0x01000000 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_SYSTEM_COMPONENT       0x02000000 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_THERMAL_COMPONENT      0x04000000 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_MEMORY_DEVICE_COMPONENT    0x08000000 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_VIDEO_COMPONENT        0x10000000 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_PROCESSOR_COMPONENT    0x20000000 [ ]
/sys/module/acpi/parameters/debug_layer:ACPI_ALL_DRIVERS            0xFFFF0000 [ ]

答案1

解决方案是检查传递给内核的命令行

cat /proc/cmdline

然后编辑 grub 文件/etc/default/grub,修复错误的参数并运行sudo update-grub

致谢@Raffa

相关内容