Commit 1f5598f4 authored by Guido Gunther's avatar Guido Gunther
Browse files

HACK: Fixup bootargs

This works around Librem5/librem5-devkit-tools#32
by putting the correct root device onto the kernel's command line.
parent 27129628
Pipeline #61257 passed with stage
in 13 seconds
......@@ -97,6 +97,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()
Markdown is supported
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