From c5197e0f1a4bc5520db6b9c21ac38c6031d27507 Mon Sep 17 00:00:00 2001 From: davidza Date: Tue, 13 Aug 2024 13:32:24 +0300 Subject: [PATCH] Remove unneeded variable --- sonic_installer/bootloader/grub.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sonic_installer/bootloader/grub.py b/sonic_installer/bootloader/grub.py index c139981739..029ebf34f1 100644 --- a/sonic_installer/bootloader/grub.py +++ b/sonic_installer/bootloader/grub.py @@ -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