In order to have in the MBR (Master Boot Record) only the boot menu which points on the boot menus in the partitions, you proceed as follows:
Edit the script 40_custom:
menuentry "" { set root= } # Empty line!
#
menuentry 'Back to the boot menu on /dev/sda' {
chainloader (hd0)+1
}
#
menuentry "" { set root= }
#
menuentry "TinyCore-15.0 on /dev/sda1" {
recordfail
insmod ext2
set root='(hd0,1)'
set gfxmode=1366x768
linux /opt/tce/boot/vmlinuz loglevel=3 tce=sda1 quiet lang=de_DE.UTF-8 kmap=qwertz/de-latin1 tz=GST-2
initrd /opt/tce/boot/core.gz
}
Set in /etc/default/grub GRUB_DISABLE_OS_PROBER to true
sudo grub-install --force --boot-directory=/boot /dev/sda1
Reboot your computer, boot other partition, e.g. /dev/sda2
Edit the script 40_custom:
menuentry "" { set root= } # Empty line!
#
menuentry 'Back to the boot menu on /dev/sda' {
chainloader (hd0)+1
}
#
menuentry "" { set root= }
#
menuentry "TinyCore-15.0 on /dev/sda2" {
recordfail
insmod ext2
set root='(hd0,2)'
set gfxmode=1366x768
linux /opt/tce/boot/vmlinuz loglevel=3 tce=sda2 quiet lang=de_DE.UTF-8 kmap=qwertz/de-latin1 tz=GST-2
initrd /opt/tce/boot/core.gz
}
Set in /etc/default/grub GRUB_DISABLE_OS_PROBER to true
sudo grub-install --force --boot-directory=/boot /dev/sda2
Reboot your computer, boot the boot partition, e.g. /dev/sda1
If not yet done, first execute the previous steps of this instruction
Remove the symbolic link /etc/grub.d
Edit the script 40_custom:
menuentry 'Launch the boot menu on /dev/sda1 (<Label>)' {
chainloader (hd0,1)+1
}
#
menuentry 'Launch the boot menu on /dev/sda2 (<Label>)' {
chainloader (hd0,2)+1
}
#
menuentry "" { set root= } # Empty line!
#
Copy the folder /boot/grub to /boot-mbr/grub (without the Linux kernels)
Good luck!