SHA256
1
0
forked from pool/mdadm

- 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
This commit is contained in:
Neil Brown 2013-09-06 04:05:58 +00:00 committed by Git OBS Bridge
parent 378c6a0dcb
commit 984ab4d563
2 changed files with 22 additions and 0 deletions

View File

@ -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

View File

@ -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