File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -581,17 +581,11 @@ cp $tmp_config /boot/efi/EFI/debian/grub.cfg
581581# Add extra linux command line
582582echo " EXTRA_CMDLINE_LINUX=$extra_cmdline_linux "
583583GRUB_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
596590cat << EOF >> $grub_cfg
597591menuentry '$demo_grub_entry ' {
You can’t perform that action at this time.
0 commit comments