Page 1 of 1

Pi won't boot after update to initramfs

Posted: Sat Dec 31, 2016 1:31 pm
by richarddmorey
I have been trying to get my Raspbian (Jessie, installed from the image here: https://www.raspberrypi.org/downloads/raspbian/) to boot with an encrypted root partition.

I was successful following the guide here: http://paxswill.com/blog/2013/11/04/enc ... pberry-pi/

When I boot the Pi, it drops to an initramfs prompt, then I unlock the partition with

Code: Select all

# cryptsetup luksOpen /dev/mmcblk0p2 sdcard
# exit

and it boot up to Debian. Great!

However, there are some issues. When I try to update the initramfs file with

Code: Select all

# sudo mkinitramfs -o /boot/initramfs.gz
in Debian, the Pi doesn't successfully reboot to the initramfs prompt. It just hangs with a blinking cursor after showing the Pixel logo. When I restore to my backed-up boot image, I get the initramfs prompt again and can boot from the encrypted root.

The second issue is that I did not properly configure dropbear; it appears to be configured to use DHCP, which means that when I log in it gets some random IP address. I need to update the configuration to a fixed IP so that I can log in headless after a reboot, but without the ability to update the initramfs, I don't know how to fix this.

Given that I can't even get an initramfs prompt after the update, I'm really not sure how to even start solving this problem, so any hints would be great. I'll provide whatever information that will be helpful.

Re: Pi won't boot after update to initramfs

Posted: Thu Mar 22, 2018 10:55 am
by Rocreex
I am having the exact same issue right now with the same tutorial and the latest Raspbian version. Is there any kind of log to see what's going wrong? Did you find a solution back then?