Bug#549298: mdadm should copy its own rules file to the initramfs

Petter Reinholdtsen pere at hungry.com
Sun Oct 25 10:57:32 UTC 2009


[Marco d'Itri]
> Even simpler. Since you know where the package installed the file
> you can just copy it.

Right.  So something like this would work then.

diff -ur mdadm-3.0/debian/initramfs/hook mdadm-3.0-pere/debian/initramfs/hook
--- mdadm-3.0/debian/initramfs/hook     2009-10-24 23:46:21.000000000 +0200
+++ mdadm-3.0-pere/debian/initramfs/hook        2009-10-25 11:56:08.000000000 +0100
@@ -281,6 +281,9 @@
     done
   fi

+  # Copy udev rules, udev want to stop copying it
+  mkdir -p $DESTDIR/lib/udev/rules.d/
+  cp /lib/udev/rules.d/64-md-raid.rules $DESTDIR/lib/udev/rules.d/
 else
   echo "MD_DEVS=none" >> $DESTCONFIG
   echo "MD_MODULES=''" >> $DESTCONFIG

The patch is still untested, I do not have a machine to test it on.

Happy hacking,
-- 
Petter Reinholdtsen





More information about the pkg-mdadm-devel mailing list