Skip to content

Instantly share code, notes, and snippets.

@basoro
Created March 25, 2020 20:33
Show Gist options
  • Save basoro/befff9f6d322441b7621d2aa065edaf6 to your computer and use it in GitHub Desktop.
Save basoro/befff9f6d322441b7621d2aa065edaf6 to your computer and use it in GitHub Desktop.
Add Prime OS (Android_x86_x64) to grub menu
from debian add the android entry to /etc/grub.d/40_custom
menuentry 'Android' --class android --class android-x86_64 --class gnu-linux --class os {
set root='(hd0,2)'
linux /android/kernel root=/dev/ram0 SERIAL=random logo.showlogo=1 androidboot.selinux=permissive quiet DATA= USB_DATA_PARTITION=1
initrd /android/initrd.img
}
update the grub
sudo update-grub
@AhanafRASHID
Copy link

I am having trouble here can you help me? this output is quite unexpected.
this is the result from update-grub

Adding boot menu entry for UEFI Firmware Settings ...
/etc/grub.d/40_custom: 2: menuentry: not found
/etc/grub.d/40_custom: 4: linux: not found
/etc/grub.d/40_custom: 5: initrd: not found
/etc/grub.d/40_custom: 6: Syntax error: "}" unexpected

Every file is here with the exact name.
Screenshot from 2023-04-26 22-45-23
Screenshot from 2023-04-26 22-46-08
Screenshot from 2023-04-26 22-47-42
I have also changed
set root = '(hd0,2)'
to
set root = '(hd0,3)'
according to my partition.

Pls help me.
Tnx is advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment