Adding Android x86 to GRUB2
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
Related videos on Youtube
jongla
Updated on September 18, 2022Comments
-
jongla about 1 yearI installed
cm-x86_64-14.1-rc1in a separate partition. I already have Windows 10 and Ubuntu 16.04 installed on my laptop.There are a lot of boot sequences online to add android x86 to GRUB, but either they are for really old builds or I am not being able to modify them for my build correctly.
What should be the boot sequence for
cm-x86_64-14.1-rc1to add in GRUB? Will it be enough if I put the sequence through GRUB customizer and save it? -
neverMind9 over 5 yearsWhy exactly 40_custom and not 41_custom?.