initramfs-tools hook script messes up /etc/udev/rules.d

Bug #315409 reported by Danilo Piazzalunga
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devmapper (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

On Jaunty, the /usr/share/initramfs-tools/hooks/dmsetup script from dmsetup 1.02.27-4ubuntu1 fails to install /etc/udev/rules.d/65-dmsetup.rules correctly in the initramfs: it creates a file named /etc/udev/rules.d. I suspect this is caused by the moving of /etc/udev/rules.d to /lib/udev/rules.d made by udev 136-1.

This also prevents other hooks (like /usr/share/initramfs-tools/hooks/mdadm) from installing their rules causing the latter to fail (for example, I noticed this bug because a system using mdadm's software RAID failed to boot).

The fix is as simple as adding "mkdir -p ${DESTDIR}/etc/udev/rules.d" to /usr/share/initramfs-tools/hooks/dmsetup, like I have done on my system to get it booting smoothly again.

Revision history for this message
Danilo Piazzalunga (danilopiazza) wrote :
Revision history for this message
Lenar (lenar) wrote :

It's the same problem as in bug #314879 (lvm2).
Attached change fixes the problem for me.

Changed in devmapper:
status: New → Confirmed
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

The fix is incorrect.

The udev rule should be installed into /lib/udev/rules.d instead

Revision history for this message
Lenar (lenar) wrote :

So it's mdadm package that solves the problem incorrectly?

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.