Skip to content

Commit 53be1a9

Browse files
tirupatihemanthsaiarcot895
authored andcommitted
Try to fix UEFI boot issue (sonic-net#49)
1 parent e979778 commit 53be1a9

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

installer/default_platform.conf

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -581,17 +581,11 @@ cp $tmp_config /boot/efi/EFI/debian/grub.cfg
581581
# Add extra linux command line
582582
echo "EXTRA_CMDLINE_LINUX=$extra_cmdline_linux"
583583
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX $extra_cmdline_linux"
584-
GRUB_CFG_LINUX_CMD=""
585-
GRUB_CFG_INITRD_CMD=""
586-
if [ "$firmware" = "uefi" ] && expr "$secure_boot_state" : '[[:digit:]]\{1,\}' >/dev/null && [ "$secure_boot_state" -eq "$ENABLED" ]; then
587-
# grub.cfg when BIOS is UEFI and support Secure Boot
588-
GRUB_CFG_LINUX_CMD="linuxefi"
589-
GRUB_CFG_INITRD_CMD="initrdefi"
590-
else
591-
# grub.cfg when BIOS is Legacy
592-
GRUB_CFG_LINUX_CMD="linux"
593-
GRUB_CFG_INITRD_CMD="initrd"
594-
fi
584+
585+
# Sonic grub 2.12-9 in Debian 13 drops use of 'linuxefi' and 'initrdefi' for UEFI systems.
586+
# The same command now works for both BIOS and UEFI systems.
587+
GRUB_CFG_LINUX_CMD="linux"
588+
GRUB_CFG_INITRD_CMD="initrd"
595589
596590
cat <<EOF >> $grub_cfg
597591
menuentry '$demo_grub_entry' {

0 commit comments

Comments
 (0)