From 05b1078286dbe1d98f50d49f3b87be479b9ff6b9 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..f624d35 100755 --- a/arch-secure-boot +++ b/arch-secure-boot @@ -62,7 +62,7 @@ case "$1" in trap 'rm -rf $tmp' EXIT cd "$tmp" - grep -v "^#" "$CMDLINE" > cmdline + grep -v "^#" "$CMDLINE" | head -1 > cmdline sed "s|%%NAME%%|$NAME|g; s|%%CMDLINE%%|$(cat cmdline)|g" "$DIR/recovery.nsh" > recovery.nsh sed -i "s|subvol=$SUBVOLUME_ROOT|subvol=$SUBVOLUME_SNAPSHOT|g" recovery.nsh