should copy /etc/udev/ rule if available
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mdadm (Ubuntu) |
Fix Released
|
Medium
|
Dimitri John Ledkov | ||
Precise |
Fix Released
|
Medium
|
Dimitri John Ledkov | ||
Quantal |
Fix Released
|
Medium
|
Dimitri John Ledkov |
Bug Description
[IMPACT]
* Previously overriding the system mdadm rule was not copied into initramfs, thus had no effect at boot
* The fix is to check for existence of the mdadm rule override in the /etc/udev/rules.d and copy it into the initramfs in addition to the system udev rule
[TESTCASE]
* Touch the udev rule overrided (Note old package ships two udev rules as per bug 1002357):
* Update the initramfs
* Unpack the initramfs NB! use your correct name for the inird.img file name!
* Search for the udev rule override
$ sudo touch /etc/udev/
$ sudo touch /etc/udev/
$ update-initramfs -u
$ cd `mktemp -d` && gzip -dc /boot/initrd.
$ find -name '*.rules' -empty
# No output
* Upgrade the package and repeat
$ sudo touch /etc/udev/
$ update-initramfs -u
$ cd `mktemp -d` && gzip -dc /boot/initrd.
$ find -name '*.rules' -empty
# Expect the location of the empty rules override
[Regression Potential]
* Systems administrators who by lucky chance where overriding upsteam udev rules name, which previously was not present on Ubuntu, may be surprised or annoyed that their change now got copied into initramfs and affected their boot.
* Same as in the bug 968074, the default udev rule has changed. Users who relied on the previous, incomplete/broken, udev rules may be pleasantly surprised or annoyed that the udev rule name has changed to match the one of Debian and upstream.
* System administrators need to check their /etc/udev/rules.d/ to make sure that (a) they do not override mdadm rules (b) if they do, check that those overrides are still needed (c) that the override is named to match the new udev rule name.
Changed in mdadm (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Dmitrijs Ledkovs (dmitrij.ledkov) |
Changed in mdadm (Ubuntu Precise): | |
status: | New → Triaged |
assignee: | nobody → Dmitrijs Ledkovs (dmitrij.ledkov) |
importance: | Undecided → Medium |
milestone: | none → ubuntu-12.04.1 |
description: | updated |
Changed in mdadm (Ubuntu Precise): | |
status: | Triaged → In Progress |
This bug was fixed in the package mdadm - 3.2.5-1ubuntu2
---------------
mdadm (3.2.5-1ubuntu2) quantal; urgency=low
* Copy udev rule from /etc/udev/rules.d/ as well as the udev/rules. d/, to allow local administrator to override mdadm
/lib/
rules file (LP: #1017407)
-- Dmitrijs Ledkovs <email address hidden> Mon, 25 Jun 2012 10:43:38 +0100