Hi,
I've installed SliTaz Linux onto a headless server with the following partition scheme:
/dev/hdb1 ext3 main system
/dev/hdb2 ext3 currently empty
/dev/hdb3 swap
I would like to further configure this machine so that (1) a VirtualBox virtual machine is automatically started during boot with no user intervention, and (2) /dev/hdb1 /dev/hdb2 are encrypted with LUKS or the like.
Because /dev/hdb1 and /dev/hdb2 will be encrypted, I will need to decrypt them with my passphrase during boot. But since this will be a headless server, I need to SSH in
before the main OS loads, i.e. I probably need to SSH into initramfs?
So far, I've found (1)
VBoxTool which starts a virtual machine during boot, and (2) and
early-ssh which installs dropbear SSH server into initramfs.
However, since all my partitions (/dev/hdb1, /dev/hdb2) will be encrypted, I need to decrypt them
before the boot process can continue after initramfs. This seems to imply that I need to modify the initramfs process so that I can (1) login via early-ssh mentioned above, (2) enter my decryption passphrase, then (3) let the normal boot process continue.
Therefore, my question is: how do I find and edit my initramfs so that I can add the needed decryption tools (what are they?) and be prompted to enter my passphrase via SSH during boot?
Sorry for the long question, thanks for your help!