我应该在哪里向 initramfs 添加模块?(15.04)

我应该在哪里向 initramfs 添加模块?(15.04)

我需要添加这些模块,因为当我尝试输入加密密码时,我的 USB 键盘不工作。

usbcore
uhci_hcd
ehci_hcd
usbhid

我想我需要将这些添加到 /etc/initramfs-tools/modules,但我到底应该把它们添加到哪里。这是模块文件:

# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax:  module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod

我应该把它添加到哪里,我做的正确吗(安全吗)?

答案1

只需将它们添加到文件末尾即可

# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax:  module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod
usbcore
uhci_hcd
ehci_hcd
usbhid

但我不认为这和你的问题有关。

相关内容