Skip to content

Commit 6b70986

Browse files
authored
Merge pull request sonic-net#59 from Azure/gechiang-patch-1
Fix Secureboot causing image load issue on pizzabox platforms
2 parents 7ead662 + d55eaa6 commit 6b70986

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

installer/x86_64/install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ echo "EXTRA_CMDLINE_LINUX=$extra_cmdline_linux"
758758
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX $extra_cmdline_linux"
759759
GRUB_CFG_LINUX_CMD=""
760760
GRUB_CFG_INITRD_CMD=""
761-
if [ "$firmware" = "uefi" ] ; then
761+
if [ "$firmware" = "uefi" ] && expr "$secure_boot_state" : '[[:digit:]]\{1,\}' >/dev/null && [ "$secure_boot_state" -eq "$ENABLED" ]; then
762762
# grub.cfg when BIOS is UEFI and support Secure Boot
763763
GRUB_CFG_LINUX_CMD="linuxefi"
764764
GRUB_CFG_INITRD_CMD="initrdefi"

0 commit comments

Comments
 (0)