kernel /kernel
append initrd=/initrd.img CMDLINE quiet SRC= DATA=
-label vesa
- menu label Live CD - ^VESA mode
- kernel /kernel
- append initrd=/initrd.img CMDLINE nomodeset vga=ask SRC= DATA=
-
label debug
menu label Live CD - ^Debug mode
kernel /kernel
kernel /kernel
append initrd=/initrd.img CMDLINE INSTALL=1 DEBUG=
+menu separator
+
+menu begin advanced
+menu label ^Advanced options...
+menu title Advanced options
+
+label vesa
+ menu label Live CD ^VESA mode - No GPU hardware acceleration
+ kernel /kernel
+ append initrd=/initrd.img CMDLINE nomodeset vga=ask SRC= DATA=
+
+menu separator
+
label auto_install
- menu label ^Audo_Installation - Auto Install to harddisk
+ menu label Audo_^Installation - Auto Install to first harddisk
kernel /kernel
append initrd=/initrd.img CMDLINE AUTO_INSTALL=1 DEBUG=
+
+label auto_update
+ menu label Audo_^Update - Auto update Android-x86
+ kernel /kernel
+ append initrd=/initrd.img CMDLINE AUTO_INSTALL=update DEBUG=
+
+menu separator
+
+label local
+ menu label Boot from ^local drive
+ localboot 0xffff
+
+menu separator
+
+label mainmenu
+ menu label ^Back...
+ menu exit
+
+menu end
menuentry "Android-x86 VER $1" "$@" --class android-x86 {
shift 2
savedefault
- search --no-floppy --set -f $kdir/kernel
+ set root=$android
linux $kdir/kernel CMDLINE $src $@
initrd $kdir/initrd.img
}
load_env
fi
+search --no-floppy --set android -f $kdir/kernel
+export android kdir live src
+
# Create main menu
add_entry "$live" quiet
add_entry "$debug_mode" DEBUG=2
-if [ "$installation" ]; then
- add_entry "$installation" INSTALL=1
- add_entry "Auto $installation" AUTO_INSTALL=1
+if [ -s ($android)$kdir/install.img ]; then
+ add_entry "Installation" INSTALL=1
fi
+submenu "Advanced options -> " {
+ add_entry "$live - No Hardware Acceleration" quiet nomodeset HWACCEL=0
+ if [ -s ($android)$kdir/install.img ]; then
+ add_entry "Auto Install to first harddisk" AUTO_INSTALL=1
+ add_entry "Auto Update" AUTO_INSTALL=update
+ fi
+ if [ "$grub_cpu" != "i386" ]; then
+ menuentry "Reboot" { reboot }
+ menuentry "Poweroff" { halt }
+ menuentry "UEFI BIOS Setup" { fwsetup }
+ fi
+}
+
if [ "$grub_cpu" = "i386" ]; then
set grub=grubia32
else