Encryption dropbear initramfs可以';找不到modprobe和blkid

Encryption dropbear initramfs可以';找不到modprobe和blkid,encryption,debian,dropbear,initramfs,Encryption,Debian,Dropbear,Initramfs,我试图让dropbear远程ssh在debian系统上启动,该系统使用lvm crypto luks加密 我可以让它在我的树莓皮上工作,但在我的常规系统上不行 步骤: 1使用加密的LVM安装debian ls -l /lib/modules/ |awk -F" " '{print $9}' mkinitramfs -o /boot/initramfs.gz echo initramfs initramfs.gz >> /boot/config.txt 然后使用前面的以下行创建rsa

我试图让dropbear远程ssh在debian系统上启动,该系统使用lvm crypto luks加密

我可以让它在我的树莓皮上工作,但在我的常规系统上不行

步骤: 1使用加密的LVM安装debian

ls -l /lib/modules/ |awk -F" " '{print $9}'
mkinitramfs -o /boot/initramfs.gz
echo initramfs initramfs.gz >> /boot/config.txt
然后使用前面的以下行创建rsa ssh密钥,并将其保存到
/etc/dropbear initramfs/authorized_keys
command=“/scripts/local top/cryptroot&&kill-9`ps | grep-m1'cryptroot'| cut-d'-f3`”ssh…

然后:

mkinitramfs -o /boot/initramfs.gz 
reboot
我可以键入密码并用键盘解密,但当我使用ssh登录时,我会得到:

/scripts/local-top/cryptroot: line 218: modprobe: not found
/scripts/local-top/cryptroot: line 378: blkid: not found
/scripts/local-top/cryptroot: line 378: blkid: not found
/scripts/local-top/cryptroot: line 378: blkid: not found
/scripts/local-top/cryptroot: line 378: blkid: not found
/scripts/local-top/cryptroot: line 378: blkid: not found
...
请帮忙

额外信息:
我的孩子

我的/etc/fstab

/dev/sda1: UUID="42a9ca50-b757-4e11-985f-8fc75323b598" TYPE="ext2" PARTUUID="38de37f0-01"
/dev/sda5: UUID="3448b157-v4a5-4f6a-a1ea-28e6362cdea9" TYPE="crypto_LUKS" PARTUUID="38de37f0-05"
/dev/sdb1: UUID="CC55-BAFE" TYPE="vfat" PARTUUID="0000370e-01"                                          /dev/mapper/sda5_crypt: UUID="nzAaP7-Ocx9-BJzO-BM7S-SQcY-BHqp-tbgvH6" TYPE="LVM2_member"
/dev/mapper/theproject1--vg-root: UUID="f8ec5b07-75fe-4870-9fb6-9e9035d21a20" TYPE="ext4"
/dev/mapper/theproject1--vg-swap_1: UUID="ff915ae6-210f-4bbb-8988-b30aacae3dea" TYPE="swap"  
我的/etc/cryptab

sda5_crypt UUID=3448b157-v4a5-4f6a-a1ea-28e6362cdea9 none luks,discard

我有一个类似的问题,但不同的解决方案

我有一台加密的Kali-Linux计算机,使用dropbear initramfs包在引导时通过dropbear ssh会话使用cryptroot unlock远程解锁根磁盘

这在很长一段时间内运行良好,但经过一些更新后,它停止了工作。我可以SSH到initramfs disk dropbear会话,但是当我执行“cryptroot unlock”时,它会挂起,并且我会得到错误“error:Timeout reated while waiting waiting askpass”

最终我找到了解决办法:- 基本上要修复我卸载了“密码设置核密码”包“apt删除密码设置核密码”。然后重新启动,然后我可以通过dropbear initramfs远程成功地打开加密的/根分区


如果您在引导时ssh到dropbear initramfs,尝试对驱动器进行cryptroot解锁时收到错误“error:Timeout reated when waiting as askpass.”。要确认问题是否与我的相同,请执行“ps”并查看正在运行的流程。如果看到类似于“/lib/cryptsetup/askpass.cryptsetup Please unlock disk..”的内容,我建议通过控制台登录并删除“cryptsetup nuke password”来解决此问题。

我会立即尝试,但如果您想在驱动器上安装nuk密钥,则可能没有用。希望开发者能尽快解决这个问题
sda5_crypt UUID=3448b157-v4a5-4f6a-a1ea-28e6362cdea9 none luks,discard