image: support luks root filesystem
The actual implementation hardcode the cipher, pbkdf, key-size
and hash algorithm options.
The resize of the root encrypted volume is not working:
systemd-growfs[417]: crypt_resize() of /dev/mmcblk0p2 failed: Operation not permitted
systemd-growfs[417]: Unable to resize underlying device of "/", proceeding anyway: Operation not permitted
systemd-growfs[417]: Successfully resized "/" to 3.8G bytes.
-
build.sh: new option
-cto enable encryptedrootfilesystem. -
image.yaml: install
fdepackages when encryptedrootis enabled. New action to encrypt therootpartition to a LUKS volume. Forceinitramfsupdate with/devmounted to resolve/dev/mapper/root. -
scripts/setup-luks.sh: convert the
rootfilesystem to a cryptsetup volume. -
scripts/update-initramfs.sh: mount
/devand update theinitramfs. -
devices/librem5/bootloader.sh: get
TARGET_DISKfrom/bootbecause LUKS encrypted root device make it more difficult.