Skip to content

Commit

Permalink
Remove unneeded variable
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidZagury committed Aug 13, 2024
1 parent da23509 commit c5197e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sonic_installer/bootloader/grub.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ def is_secure_upgrade_image_verification_supported(self):
if ! [ -n "$(ls -A /sys/firmware/efi/efivars 2>/dev/null)" ]; then
mount -t efivarfs none /sys/firmware/efi/efivars 2>/dev/null
fi
SECURE_UPGRADE_ENABLED=$(mokutil --sb-state 2>/dev/null | \
grep -c "enabled") || CHECK_SECURE_UPGRADE_ENABLED=$?
SECURE_UPGRADE_ENABLED=$(mokutil --sb-state 2>/dev/null | grep -c "enabled")
else
echo "efi not supported - exiting without verification"
exit 1
Expand Down

0 comments on commit c5197e0

Please sign in to comment.