Skip to content

Commit

Permalink
Fixed the issue that boot_counter cannot be unset and some scripts do…
Browse files Browse the repository at this point in the history
… not have executable permissions
  • Loading branch information
ssk-wh authored and nullr0ute committed Oct 22, 2024
1 parent 74dd761 commit 28ca090
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Empty file modified usr/libexec/greenboot/greenboot-boot-remount
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion usr/libexec/greenboot/greenboot-grub2-set-success
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if ! /usr/bin/grub2-editenv /boot/grub2/grubenv set boot_success=1; then
exit 1
fi

if ! /usr/bin/grub2-editenv /boot/grubenv unset boot_counter; then
if ! /usr/bin/grub2-editenv /boot/grub2/grubenv unset boot_counter; then
# If the second command fails, remount /boot as read-only and exit with failure
remount_boot_ro
exit 1
Expand Down

0 comments on commit 28ca090

Please sign in to comment.