Commit 6f021891 authored by Guido Gunther's avatar Guido Gunther
Browse files

image-buildr: Fixup bootargs for luks boot

This works around librem5-devkit-base putting an
unencrypted root device into flash-kernel's boot

parent 02ee5b08
Pipeline #62127 passed with stage
in 10 seconds
......@@ -94,6 +94,11 @@ EOF
# Hack up cryttab until askpass supports it
sed -i 's%discard%discard,keyscript=/usr/bin/osk-sdl-keyscript%' "${basedir}/etc/crypttab"
chroot "${basedir}" update-initramfs -u
# Work around
BLKID=$(sudo blkid -c /dev/null -o value -s 'UUID' /dev/mapper/crypt_root)
sed -i "s%root=[^\"]\\+%root=UUID=${BLKID}%" "${basedir}/etc/flash-kernel/ubootenv.d/root"
chroot "${basedir}" flash-kernel
function cleanup_cryptroot()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment