crypted root, os-prober and grub-mkconfig

Josef Wolf jw at raven.inka.de
Sun Jan 17 13:44:12 UTC 2010


On Sun, Jan 10, 2010 at 01:09:53PM +0100, Josef Wolf wrote:
> Hello,
> 
> with crypted root partitions (which should be pretty common on laptops
> nowadays), os-prober is not able to find all installed linux flavors.
> As a consequence, those flavors are no longer bootable after grub-install
> (or grub-mkconfig).
> 
> Turns out that /usr/lib/os-probes/mounted/90linux-distro doesn't even try
> to look for boot partitions. IMHO, it should be possible to parse grub.cnf
> and menu.lst from the boot partitions to find all installed systems.
> 
> So what is the proper way to install multiple linux distros with crypted
> roots on a laptop? Maybe there's a way to tell os-prober about additional
> partitions to report?

I notice that "linux-boot-prober /dev/mapper/XXX" finds all the needed
information after a "cryptsetup luksOpen" is done, but os-prober still
don't find it.

This is really a drawback. With grub-1, one could simply add the missing
entries in /boot/grub/menu.lst. But this is no longer possible with grub-2,
since grub-2 insists to find everything automatically. But the automatic
search don't work properly. :-(




More information about the ubuntu-users mailing list