[root@localhost android-x86-6.0-rc1]# gedit bootable/newinstaller/install/scripts/1-install
echo -e "${GRUB_OPTIONS:-default=0
timeout=6
splashimage=/grub/android-x86.xpm.gz
}root (hd0,$1)
" > $menulst
cp -af /grub2/efi /hd
mkdir -p /hd/boot/grub
grubcfg=/hd/boot/grub/grub.cfg
echo -e "set timeout=5
" > $grubcfg
echo -e "menuentry "Android-x86 $VER" {
search --set=root --file /$asrc/kernel
linux /$asrc/kernel quiet $cmdline
initrd /$asrc/initrd.img
}" >> $grubcfg
echo -e "menuentry "Android-x86 $VER (DEBUG mode)" {
search --set=root --file /$asrc/kernel
linux /$asrc/kernel $cmdline DEBUG=2
initrd /$asrc/initrd.img
}" >> $grubcfg
if [ -e /hd/EFI/Microsoft/Boot/bootmgfw.efi ]; then
echo -e "menuentry "Windows (UEFI)" {
search --set=root --file /EFI/Microsoft/Boot/bootmgfw.efi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}" >> $grubcfg
fi
mountpoint -q /hd && umount /hd
try_mount rw /dev/$1 /hd