[SOLVED] Export grub entry from treusted grub android to grub pc
by pedropt from LinuxQuestions.org on (#5S7DR)
Hi everyone i am having an issue trying to add my android hdd boot to grub-pc config file where i have my linux and windows .
Sadly osprober does not catch android installation on other disk , if i want to launch android from that disk i have to boot computer from that hdd other wise it will not work .
The current config on trusted grub menu in android hdd is :
Quote:
however
in my grub-pc i have :
Quote:
My question is , how to i export the startup line from trusted grub to grub-pc and make it boot to android , copy and paste does not work , i have tried grub customizer without sucess .
Any idea ?
Thanks
Sadly osprober does not catch android installation on other disk , if i want to launch android from that disk i have to boot computer from that hdd other wise it will not work .
The current config on trusted grub menu in android hdd is :
Quote:
default=0 timeout=6 splashimage=/grub/android-x86.xpm.gz root (hd0,0) title Android-x86 7.1-r5 kernel /android-7.1-r5/kernel quiet root=/dev/ram0 androidboot.selinux=permissive buildvariant=userdebug SRC=/android-7.1-r5 initrd /android-7.1-r5/initrd.img title Android-x86 7.1-r5 (Debug mode) kernel /android-7.1-r5/kernel root=/dev/ram0 androidboot.selinux=permissive buildvariant=userdebug DEBUG=2 SRC=/android-7.1-r5 initrd /android-7.1-r5/initrd.img title Android-x86 7.1-r5 (Debug nomodeset) kernel /android-7.1-r5/kernel nomodeset root=/dev/ram0 androidboot.selinux=permissive buildvariant=userdebug DEBUG=2 SRC=/android-7.1-r5 initrd /android-7.1-r5/initrd.img title Android-x86 7.1-r5 (Debug video=LVDS-1:d) kernel /android-7.1-r5/kernel video=LVDS-1:d root=/dev/ram0 androidboot.selinux=permissive buildvariant=userdebug DEBUG=2 SRC=/android-7.1-r5 initrd /android-7.1-r5/initrd.img |
in my grub-pc i have :
Quote:
.... more entries above menuentry 'Kali GNU/Linux, with Linux 5.6.0-kali1-amd64 (recovery mode)' --class kali --class gnu-linux --class gnu > load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd4,msdos5' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos5 --hint-efi=hd4,msdos5 --hint-baremetal=ahci> else search --no-floppy --fs-uuid --set=root 31365657-7bbe-4808-98aa-2ee71f8d377b fi echo 'Loading Linux 5.6.0-kali1-amd64 ...' linux /boot/vmlinuz-5.6.0-kali1-amd64 root=UUID=31365657-7bbe-4808-98aa-2ee71f8d377b ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-5.6.0-kali1-amd64 } } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry 'Windows 7 (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-0CAB802F0A7DDDAC' { insmod part_msdos insmod ntfs set root='hd1,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1> else search --no-floppy --fs-uuid --set=root 0CAB802F0A7DDDAC fi parttool ${root} hidden- chainloader +1 } |
My question is , how to i export the startup line from trusted grub to grub-pc and make it boot to android , copy and paste does not work , i have tried grub customizer without sucess .
Any idea ?
Thanks