grub
grub/android-x86.xpm.gz
grub/e2fs_stage1_5
grub/fat_stage1_5
grub/iso9660_stage1_5
grub/ntfs_stage1_5
grub/stage1
grub/stage2
grub/stage2_eltorito
grub2
grub2/efi
grub2/efi/boot
grub2/efi/boot/bootia32.efi
grub2/efi/boot/bootx64.efi
dialog --title " Confirm " --no-label Skip --defaultno --yesno \
"\n Do you want to install EFI GRUB2?" 7 39
if [ $? -eq 0 ]; then
get_part_info $1
for i in /sys/block/$disk/$disk*; do
[ 0`cat $i/partition` -eq 1 ] && break
done
boot=`basename $i`
mountpoint -q /hd && umount /hd
dialog --title " Confirm " --defaultno --yesno \
"\n Do you want to format the boot partition\n /dev/$boot?" 8 45
[ $? -eq 0 ] && mkdosfs -n EFI /dev/$boot
try_mount rw /dev/$boot /hd
cp -af /grub2/efi /hd
grubcfg=/hd/efi/boot/grub.cfg
echo -e "set timeout=6" > $grubcfg
echo -e "menuentry \"Android-x86 $VER\" {\n\tsearch --set=root --file /$asrc/kernel\n\tlinuxefi /$asrc/kernel quiet $cmdline \n\tinitrdefi /$asrc/initrd.img\n}" >> $grubcfg
echo -e "menuentry \"Android-x86 $VER (DEBUG mode)\" {\n\tsearch --set=root --file /$asrc/kernel\n\tlinuxefi /$asrc/kernel $cmdline DEBUG=2\n\tinitrdefi /$asrc/initrd.img\n}" >> $grubcfg
if [ -e /hd/EFI/Microsoft/Boot/bootmgfw.efi ]; then
echo -e "menuentry \"Windows (UEFI)\" {\n\tsearch --set=root --file /EFI/Microsoft/Boot/bootmgfw.efi\n\tchainloader /EFI/Microsoft/Boot/bootmgfw.efi\n}" >> $grubcfg
fi
mountpoint -q /hd && umount /hd
try_mount rw /dev/$1 /hd
fi
Can you see the grub menu or not on earth??
Isn't your ubuntu grub an efi-entry?
Why don't you just use it?
Note android-x86 installer doesn't create efi-entry either.
It just copy grub-efi to /EFI/BOOT/bootx64.efi
or /EFI/BOOT/bootia32.efi
(depends on your EFI is 64-bit or 32-bit)
to be the default efi boot entry.
I suspect you didn't run efibootmgr successfully.
If your EFI BIOS can create efi-entry directly
(like ASUS BIOS), you should just add an entry via it.
As we have suggested, the config should just work
menuentry "Run Android x86" {
search --set=root --file /android-4.4-r3/kernel
linuxefi /android-4.4-r3/kernel
androidboot.hardware=android_x86 SRC=/android-4.4-r3
initrdefi /android-4.4-r3/initrd.img
}
efibootmgr --create --disk /dev/sda --part 2 --label "Android x86" --loader \\EFI\\grub_android\\bootx64.efi
$ sudo parted -l
Modell: ATA SAMSUNG MZMTE256 (scsi)
Festplatte /dev/sda: 256GB
Sektorgröße (logisch/physisch): 512B/512B
Partitionstabelle: gpt
Nummer Anfang Ende Größe Dateisystem Name Flags
1 1049kB 1050MB 1049MB ntfs versteckt, diag
2 1050MB 1322MB 273MB fat32 EFI system partition boot
menuentry 'Ubuntu' {
search --file --no-floppy --set=root /EFI/ubuntu/shimx64.efi
chainloader (${root})/EFI/ubuntu/shimx64.efi
}