LVM install incorrectly sets root partition in lilo.conf

Bug #105631 reported by Brian Murray
2
Affects Status Importance Assigned to Milestone
lilo-installer (Ubuntu)
Fix Released
Medium
Fabio Massimo Di Nitto

Bug Description

Binary package hint: debian-installer

Using the ubuntu-server amd64 daily CD from 20070411 I choose to do an LVM + LAMP installation. Upon rebooting the system after the successful installation I was presented with a busybox shell. Error messages on boot include:

"Begin: Mounting root file system... ...
Begin: Running /scipts/local-top ...
Done.
/init: /init: 1: cannot open /dev/root: No such device or address
Begin: Running /scripts/local-premount ...
Done." ...
"Target filesystem doesn't have /sbin/init"

My '/etc/lilo.conf' lists "root=/dev/mapper/vgtest-lvtest". Passing "root=/dev/vgtest/lvtest" to the kernel at the lilo prompt caused the system to boot successfully.

Tags: iso-testing
Revision history for this message
Brian Murray (brian-murray) wrote :

Actually passing "root=/dev/mapper/vgtest-lvtest" works too. Using "break=top" and a cat of /proc/cmdline revealed that "root=fe00".

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

The problem is that lilo will pass root=fe00 to the system, meaning that the root device is a device with major 254, minor 0

This has two problems. First the initramfs parses this, and makes /dev/root with those parameters setting $ROOT to that. Then later, when it loops for that to exist, it does, so the loop completes immediately -- before LVM or devmapper have even been run! Mounting fails, so udev is killed, thus the /dev/mapper devices never appear.

The second problem is that there's no guarantee that the device will be dm-0 anyway

Revision history for this message
Brian Murray (brian-murray) wrote :

Confirming based off Scott's comment.

Changed in debian-installer:
status: Unconfirmed → Confirmed
Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

Proposed fix for feisty

Changed in debian-installer:
assignee: nobody → fabbione
importance: Undecided → Medium
status: Confirmed → In Progress
Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

better proposed fix.

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

package uploaded.

Changed in lilo-installer:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.