26.11.2015 22:24, stakanov@freenet.de пишет:
Just Bios.
First you need UUID of "another" boot partition and for completeness relative path (it may not be that trivial in case of btrfs ...) and other things ... which is BTW exactly what grub-mkconfig does for you :) You can of course skip all this if you know this already. mount /dev/sdb1 /mnt grub2-probe -t partmap /mnt/grub2/i386-pc/core.img => msdos grub2-probe -t fs /mnt/grub2/i386-pc/core.img => ext2 grub2-probe -t fs_uuid /mnt/grub2/i386-pc/core.img => 29cd03d7-ccb1-46cb-ae23-4c015c3310e5 grub2-mkrelpath /mnt/grub2/i386-pc/core.img => /grub2/i386-pc/core.img and you ideally need unique identifier so your menu entry can be distinguished from any other uuidgen => aa679e54-d81d-4464-a30a-f9bbc8b214c4 Now add /boot/grub2/custom.cfg with content menuentry "Another openSUSE bootloader" --class opensuse --id custom-aa679e54-d81d-4464-a30a-f9bbc8b214c4 { insmod part_msdos insmod ext2 search --fs-uuid 29cd03d7-ccb1-46cb-ae23-4c015c3310e5 --set multiboot /grub2/i386-pc/core.img } This should load and launch grub2 used by "another" OS instance together with its menu. You can also use chainloader to load boot block if you know where you installed it :) Downside is, there is no reliable way to identify disk at run-time, so above is probably more generic and fool proof. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org