From 07e68833252c976c8a224db53ca13234c56d9278250d7c555a67b8fb4de4646a Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Fri, 6 Sep 2013 04:05:58 +0000 Subject: [PATCH] - 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) OBS-URL: https://build.opensuse.org/package/show/Base:System/mdadm?expand=0&rev=90 --- mdadm.changes | 10 ++++++++++ mkinitrd-setup.sh | 12 ++++++++++++ 2 files changed, 22 insertions(+) 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