Skip to content

Commit

Permalink
sbctl-batch-sign: Add workaround for /boot and /boot/efi partitioned …
Browse files Browse the repository at this point in the history
…systems (#81)

Signed-off-by: Eric Naim <[email protected]>
  • Loading branch information
1Naim authored Sep 7, 2024
1 parent e40cdaf commit d65c4c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/bin/sbctl-batch-sign
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if [ "$(id -u)" -ne 0 ]; then
fi

if [ "$#" -eq 0 ]; then
for entries in $(sbctl verify | grep signed | cut -d' ' -f2); do
for entries in $(sort -u -i <(sbctl verify | grep 'signed' | cut -d' ' -f2) -i <(find /boot -maxdepth 1 -type f | grep vmlinuz)); do
sbctl sign -s $entries
done
fi

0 comments on commit d65c4c6

Please sign in to comment.