x86: sync upstream grub config

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2021-06-17 18:32:23 +08:00
parent 7e33e24758
commit c01acf6c4d
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 10 additions and 5 deletions

View File

@ -3,8 +3,13 @@
set default="0"
set timeout="@TIMEOUT@"
set root='(cd)'
if [ "${grub_platform}" = "efi" ]; then
set root='(cd0)'
else
set root='(cd)'
fi
menuentry "@TITLE@" {
linux /boot/vmlinuz @CMDLINE@ noinitrd
linux /boot/vmlinuz root=/dev/sr0 rootfstype=iso9660 rootwait @CMDLINE@ noinitrd
}

View File

@ -3,11 +3,11 @@
set default="0"
set timeout="@TIMEOUT@"
set root='(@ROOT@)'
set root='(hd0,msdos1)'
menuentry "@TITLE@" {
linux /boot/vmlinuz @CMDLINE@ noinitrd
linux /boot/vmlinuz @ROOTPART@ @CMDLINE@ noinitrd
}
menuentry "@TITLE@ (failsafe)" {
linux /boot/vmlinuz failsafe=true @CMDLINE@ noinitrd
linux /boot/vmlinuz failsafe=true @ROOTPART@ @CMDLINE@ noinitrd
}