From e5123957260797f09ddafbd7dea7d929f2c77386 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..5207e64 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 -m1 -v "^#" "$CMDLINE" > 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