should map old LVM syntax (/dev/vgname/lvname) syntax to devmapper

Bug #26314 reported by Eduard Bloch
12
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Hello,

after making few modifications on an Ubuntu systems and installing a new kernel,
the thing failed to boot. I realized that the problem was caused by the new kind
of initrd images created by mkinitramfs. I took me some time to understand what
is going on because the error messages are not helpful at all. The reason was
that I have beeing using the old syntax for the root fs, /dev/vgname/lvname, but
this breaks with the script used in the initramfs. Please make it get the root
name also from the /dev/vgname/... strings and not expect
/dev/mapper/vgname-lvname only.

Jeff Bailey (jbailey)
Changed in initramfs-tools:
assignee: jbailey → adconrad
Revision history for this message
Carthik Sharma (carthik) wrote :

Hi Eduard,

Do you still have this issue when installing a new kernel on Dapper Beta?

Thank you for reporting this bug.

Changed in initramfs-tools:
status: Unconfirmed → Needs Info
Revision history for this message
Eduard Bloch (blade) wrote :

I am not sure, I don't usualy reboot that machine. In theory, it is quite easy to fix. The maintainer of initramfs-tools should know when he/she has dealt with the problem.

Revision history for this message
jasonmaier (joerg-maier) wrote :

Hi,

i still had that issue with a brandnew 6.06 LTS X86_64 installation. The script
lvm starting at line 18:
---
vg=${ROOT#/dev/mapper/}

case ${vg} in
        /dev/root)
                unset vg
                ;;
        /*)
                exit 0
                ;;
esac
---

leads to the issue. if i comment that out and create a new initrd it works flawlessly. I dont know if you want to call vgchange -a y only if rootdev is on lvm? Is it for performance issue?

Setting new style syntax solves the problem, but i did not find a documentation that new style syntax is needed.

Regards, Joerg

Nanley Chery (nanoman)
Changed in initramfs-tools:
status: Incomplete → Confirmed
Adam Conrad (adconrad)
Changed in initramfs-tools:
assignee: adconrad → nobody
Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

Thank you for reporting this bug.

Does this occur in Lucid?

Changed in initramfs-tools (Ubuntu):
status: Confirmed → Incomplete
Nell M Gallin (ngallin)
Changed in initramfs-tools (Ubuntu):
status: Incomplete → Fix Committed
Revision history for this message
Andy Whitcroft (apw) wrote :

It seems likley that this is now resolved following the change to lvm2. Please reopen if it persists in wily.

Changed in initramfs-tools (Ubuntu):
status: Fix Committed → 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.