x86: sync upstream grub config
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
7e33e24758
commit
c01acf6c4d
@ -3,8 +3,13 @@
|
|||||||
|
|
||||||
set default="0"
|
set default="0"
|
||||||
set timeout="@TIMEOUT@"
|
set timeout="@TIMEOUT@"
|
||||||
set root='(cd)'
|
|
||||||
|
if [ "${grub_platform}" = "efi" ]; then
|
||||||
|
set root='(cd0)'
|
||||||
|
else
|
||||||
|
set root='(cd)'
|
||||||
|
fi
|
||||||
|
|
||||||
menuentry "@TITLE@" {
|
menuentry "@TITLE@" {
|
||||||
linux /boot/vmlinuz @CMDLINE@ noinitrd
|
linux /boot/vmlinuz root=/dev/sr0 rootfstype=iso9660 rootwait @CMDLINE@ noinitrd
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
set default="0"
|
set default="0"
|
||||||
set timeout="@TIMEOUT@"
|
set timeout="@TIMEOUT@"
|
||||||
set root='(@ROOT@)'
|
set root='(hd0,msdos1)'
|
||||||
|
|
||||||
menuentry "@TITLE@" {
|
menuentry "@TITLE@" {
|
||||||
linux /boot/vmlinuz @CMDLINE@ noinitrd
|
linux /boot/vmlinuz @ROOTPART@ @CMDLINE@ noinitrd
|
||||||
}
|
}
|
||||||
menuentry "@TITLE@ (failsafe)" {
|
menuentry "@TITLE@ (failsafe)" {
|
||||||
linux /boot/vmlinuz failsafe=true @CMDLINE@ noinitrd
|
linux /boot/vmlinuz failsafe=true @ROOTPART@ @CMDLINE@ noinitrd
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user