Adding Android x86 to GRUB2 [closed]
Solution 1:
First type sudo gedit /etc/grub.d/40_custom
in a terminal and add this boot sequence to the file.
menuentry "Lineage x86" {
set root='(hdX,Y)'
linux /cm-x86-14.1-rc1/kernel quiet root=/dev/ram0 androidboot.selinux=permissive acpi_sleep=s3_bios,s3_mode SRC=/cm-x86-14.1-rc1
initrd /cm-x86-14.1-rc1/initrd.img
}
hdX,Y
here is the name of your partition where Android is installed. My installed partition is sda9
, so the entry will be hd0,9
. For sdb5
the entry would be hd1,5
and so on.
If you haven't installed cm-x86-14.1-rc1 but some other version, replace the lines containing "cm-x86-14.1-rc1" with your version.
Then save the file and run sudo update-grub
in terminal.
A new working GRUB menu entry for your new androidx86 should be available at the next boot.
PS: androidboot.selinux=permissive
is necessary for androidx86 version >=7.0