Skip to content

Commit

Permalink
fix: trim cmdline if not we got sed error
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrinux committed Mar 8, 2022
1 parent 1c4fd1f commit cad4086
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 @@ -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
Expand Down

0 comments on commit cad4086

Please sign in to comment.