Skip to content

Commit

Permalink
fix: take only the first line from cmdline (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrinux authored Mar 8, 2022
1 parent 121e566 commit 0d4ed42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch-secure-boot
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0d4ed42

Please sign in to comment.