I think I have the problem narrowed down now by generating different
initramfs images. An initramfs image that can mount /dev/mapper/Ubuntu-
root and boot contains the following files:

/etc/udev/rules.d/85-lvm2.rules
/lib/libncurses.so.5 <- Might not be needed
/lib/libreadline.so.5 <- Might not be needed
/sbin/lvm
/scripts/init-premount/lvm2

So lvm2 seem to be needed to mount the disk. But when the bad unbootable
initramfs image was generated, lvm2 was not installed so those extra
lvm2-specific files were not included. Two things could be done to fix
this problem:

1. Make update-initramfs emit an error when it tries to generate an initramfs 
image without lvm2 when the root partition is Linux LVM.
2. Make apt-get and other package tools emit really big warnings when you try 
to remove lvm2 when the root partition is Linux LVM.

-- 
/dev/mapper/Ubuntu-root is missing
https://bugs.launchpad.net/bugs/255477
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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

Reply via email to