diff --git a/mdadm.changes b/mdadm.changes index 852dfca..b02bec1 100644 --- a/mdadm.changes +++ b/mdadm.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Sep 6 04:02:41 UTC 2013 - nfbrown@suse.com + +- mkinitrd-setup.sh: copy new udev rules files into + the initrd. + The "mkinitrd" package does this for the old name. + It is easier if this packages does it for the files + this package installs. + (bnc#838777) + ------------------------------------------------------------------- Tue Sep 3 05:45:28 UTC 2013 - nfbrown@suse.com diff --git a/mkinitrd-setup.sh b/mkinitrd-setup.sh index 9bc4777..6348db7 100644 --- a/mkinitrd-setup.sh +++ b/mkinitrd-setup.sh @@ -102,5 +102,17 @@ if test -n "$md_devs"; then md_devs=$(printf '/dev/%s ' $md_devs) fi +if [ "x$need_mdadm" = "x1" ] ; then + for rule in \ + 63-md-raid-arrays.rules \ + 64-md-raid-assembly.rules; do + if [ -f /usr/lib/udev/rules.d/$rule ]; then + cp /usr/lib/udev/rules.d/$rule $tmp_mnt/usr/lib/udev/rules.d + elif [ -f /lib/udev/rules.d/$rule ]; then + cp /lib/udev/rules.d/$rule $tmp_mnt/lib/udev/rules.d + fi + done +fi + save_var need_mdadm save_var md_devs