Public bug reported:

Binary package hint: lvm2

Having root on LVM is broken in feisty.

On a "regular" installation (i.e. without lvm), the ide-generic module
is loaded when mountroot in scripts/local tries to detect the filesystem
type of /dev/root

When using lvm, /dev/root is a non existing device mapper device, and
hence trying to read from it does not trigger loading ide-generic and
hence booting fails.

Off the top of my head, I have two solutions, none of which appeal very much to 
me:
1. Add ide-generic to force_load'ed modules. A robust solution, but it forces 
loading a module that might be unneeded on some systems and it only fixes it 
for ide drives.

2. Add an update-initramfs hook to lvm2 that uses dmsetup, /sys
traversal and a bit of voodoo to guess which modules are needed to mount
the root filesystem. It's a very flexible solution, but moving a disk to
another system might make it unable to boot. Also the voodoo bit is
suboptimal: For ide the only info we get from /sys is that hda uses ide-
disk, but loading ide-disk does not load ide-generic, so we need to make
a mapping of some sort to fix this(i.e. "if root dev is on a x block
device, load module y"). It's likely that there are similar issues with
scsi drivers, but I don't know.

** Affects: lvm2 (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
root on lvm on ide disks (not raid) broken
https://launchpad.net/bugs/85617

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to