r70 - mdadm/trunk/debian

madduck at users.alioth.debian.org madduck at users.alioth.debian.org
Wed Aug 2 18:37:40 UTC 2006


Author: madduck
Date: 2006-08-02 18:37:39 +0000 (Wed, 02 Aug 2006)
New Revision: 70

Modified:
   mdadm/trunk/debian/mdadm.postinst
   mdadm/trunk/debian/mdadm.udev
Log:
improvements to udev stuff

Modified: mdadm/trunk/debian/mdadm.postinst
===================================================================
--- mdadm/trunk/debian/mdadm.postinst	2006-08-02 18:18:20 UTC (rev 69)
+++ mdadm/trunk/debian/mdadm.postinst	2006-08-02 18:37:39 UTC (rev 70)
@@ -135,3 +135,13 @@
     /etc/init.d/mdadm-raid start || exit $?
   fi
 fi
+
+# install udev symlink if it's not already there and we're being upgraded,
+# see #359614
+V=2.5.2-10
+F=/etc/udev/rules.d/z60_mdadm.rules
+if [ "${1:-}" = "configure" ] && dpkg --compare-versions "${2:-$V}" lt $V \
+  && [ ! -e $F ]; then
+
+  ln -s ../mdadm.rules $F
+fi

Modified: mdadm/trunk/debian/mdadm.udev
===================================================================
--- mdadm/trunk/debian/mdadm.udev	2006-08-02 18:18:20 UTC (rev 69)
+++ mdadm/trunk/debian/mdadm.udev	2006-08-02 18:37:39 UTC (rev 70)
@@ -1,2 +1,3 @@
-# mdadm creates its own device nodes
+# mdadm creates its own device nodes, and it gets really annoyed when someone
+# creates /dev/mdX nodes and it's not supposed to use them
 KERNEL="md[0-9]*", NAME=""




More information about the pkg-mdadm-commits mailing list