diff --git a/arch-secure-boot b/arch-secure-boot index 64daa56..78ec93f 100755 --- a/arch-secure-boot +++ b/arch-secure-boot @@ -63,7 +63,7 @@ case "$1" in cd "$tmp" grep -v "^#" "$CMDLINE" > cmdline - sed "s|%%NAME%%|$NAME|g; s|%%CMDLINE%%|$(cat cmdline)|g" "$DIR/recovery.nsh" > recovery.nsh + sed "s|%%NAME%%|$NAME|g; s|%%CMDLINE%%|$(head -1 cmdline)|g" "$DIR/recovery.nsh" > recovery.nsh sed -i "s|subvol=$SUBVOLUME_ROOT|subvol=$SUBVOLUME_SNAPSHOT|g" recovery.nsh cat /boot/*-ucode.img "/boot/initramfs-$KERNEL.img" > ucode-initramfs.img