From cad4086b43b73a7eb595beec39adc7cbb4667446 Mon Sep 17 00:00:00 2001 From: Cyril Levis Date: Tue, 8 Mar 2022 08:42:19 +0100 Subject: [PATCH] fix: trim cmdline if not we got sed error --- arch-secure-boot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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