How to find all bootable OS'es to be installed on a MBR with GRUB
Hello,
I would like to know how do Linux OS installers find all the bootable OS's on the partitions of every disk present when the current OS is being installed.
An example is Ubiquity. At the end of the installation of Ubuntu, it scans all the attached disks (removable and not removable) and builds a menu.lst for GRUB containing all the found OS's with their correct title or description (i.e "windows", "Ubuntu", "Other OS")
Before looking at the Ubiquity code, I would like to know if there's a way/tool/script to scan all the disks that way WITH THE ONLY EXCEPTION of removable disks (like USB).
I remember you that GRUB itself cannot do the whole thing, since it only can find kernels on the CURRENT /boot directory, while Ubiquity (which still uses GRUB as bootloader) can also finds non-Linux OS's in ALL the disks.
Thanks
|