Categories
Mastering Development System & Network

How to prevent LiveCD from automatically starting md, luks, lvm and bcache

Is there any way to build a Debian based LiveCD that will have everything to create and mount md-raid, luks, lvm and bcache (without need to apt install after live boot) but will never automatically start any of these block devices for existing ones on boot? I have a custom LiveCD (debootstrap / live-boot / […]

Categories
Development Linux Ubuntu

Automatically unlocking an encrypted volume with a keyfile embedded in the initramfs

I am following the documentation here: https://help.ubuntu.com/community/Full_Disk_Encryption_Howto_2019 However, since none of my root devices are connected, I had to modify the existing hook to force it. I am modifying the /usr/share/initramfs-tools/hooks/cryptroot script. I’m not performing a code review, but trying to understand what is going on here … keyfiles are copied to a temporary directory […]

Categories
Development Linux Ubuntu

How to make entries in /etc/crypttab optional?

I have devices in /etc/crypttab that will not always be connected to my system. On Funtoo, I use the dmcrypt service to assist with unlocking those devices as per my configuration. /etc/crypttab appears to be the most similar in terms of functionality and I am following the guide here: https://www.freedesktop.org/software/systemd/man/crypttab.html /etc/crypttab <DEVICE> UUID=<UID> <KEYFILE> tries=1,luks,x-systemd.device-timeout=1 […]