我在哪里添加模块到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 

我应该在哪里添加它,我做的是正确的(是否安全)?

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

 # 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 

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

不,没有额外的模块应该添加到initramfs。

尝试使用其他键盘,可能是其他连接类型或模拟普通键盘的适配器,即使您连接具有附加function的特殊键盘或多个设备(如指点设备)也是如此。

我有几个键盘和适配器(蓝牙,PS / 2,USB,KVM仿真端口,PS / 2到USB和反之亦然适配器,有和没有指点设备,罗技游戏键盘带特殊模式开关)这里,如果内存为我服务没错,他们都不需要添加模块。

当然,如果您说出您使用的键盘或连接类型,加密类型(FDE,LUKS,Truecrypt,eCryptfs,EXT4 / F2FS,主分区)或您所指的密码,那么更准确地回答您的问题会更容易。 例如,Truecrypt之类的预启动身份validation是 OS内核接管之前执行的。