Closed donnm closed 3 years ago
Greetings, First thank you for the report and information you have provided. I will flag as enhancement since hard coded target is not ideal. One thing just for clarity, if I could ask you to also submit your /boot/config.txt file on the finished image.
Possibly related? https://salsa.debian.org/raspi-team/image-specs/-/issues/31
I'm trying to use examples/pios-encrypted-basic-dropbear on a Raspberry Pi 4 Model B 8GB and it boots and accepts the SSH connect but the following messages show up instead of the LUKS password prompt:
The image in question is https://raspi.debian.net/verified/20201112_raspi_4.img.xz. I tracked it down to the generated initramfs:
which comes from the encryption hook:
In the boot messages I see that the SD card is detected as mmcblk1, so this explains the error. Is this particular to the Pi 4?
I am able to get it working by updating the hook to refer to mmcblk1p2 and by modifying /etc/fstab, /etc/crypttab, and /boot/cmdline.txt because the patterns in those files are not matched by the sed commands looking for /dev/mmcblk0p2. This is caused by references to filesystem labels:
This line in /etc/fstab
becomes:
This line in /etc/crypttab
becomes:
And /boot/cmdline.txt
becomes:
I'm submitting this issue so that others can use this workaround.