
Install it by issuing:Īpt-get -assume-yes install dropbear-initramfs Make sure your system (specially cryptsetup package) is up-to-date:Īpt-get update & apt-get -assume-yes upgrade Install Dropbear package for initramfsĪs i said earlier, Ubuntu uses special Dropbear package to provide SSH server functionalities in initramfs environment with all the required hooks and scripts. So you might want to sudo -i to root before continuing. This is the main reason why Dropbear is being used as the SSH server combined with BusyBox to provide the shell and basic utilities.Īll provided steps require root access. Now if we could somehow run a SSH server in initramfs and make it accessible via network, one could remotely connect to it to unlock root partition.Īs initramfs runs in memory, we are somewhat limited in the size and complexity of the running programs. The kernel loads initramfs image, inside this image are the required files/modules/scripts for decrypting/mounting root. ubuntu-vg-swap_1 is the swap partition.


We are going to use LVM inside the LUKS container, it is not only supported, but the recommended way as we could also make use of advanced LVM functionalities later on.įollow the installation until you reach the disk partitioning section: These steps would completely remove any leftover partitions and their associated data on the drive without the possibility to recover.
