diff options
author | madduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464> | 2006-08-08 19:55:13 +0000 |
---|---|---|
committer | madduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464> | 2006-08-08 19:55:13 +0000 |
commit | 77acb358320c64b7a2882d517792a9562b138458 (patch) | |
tree | 9fa77e55c943b26c7fbc6345093f143757d5111d /debian/mdadm.postinst | |
parent | 8610b33e7ce00a22f109418f223e76dbb0a59005 (diff) |
* Removed udev rules because it was causing unbootable systems when the
kernel autoassembly assembled the RAIDs (and not mdadm) and thus no device
nodes were created.
Diffstat (limited to 'debian/mdadm.postinst')
-rw-r--r-- | debian/mdadm.postinst | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/debian/mdadm.postinst b/debian/mdadm.postinst index 4b2fb7de..e205a8bb 100644 --- a/debian/mdadm.postinst +++ b/debian/mdadm.postinst @@ -127,6 +127,23 @@ then update-rc.d -f mdadm-raid remove fi +# try to undo udev rules (installed by 2.5.2-10, see 2.5.3-1 changelog) +# commented original install snippet included below +if [ "${1:-}" = "configure" ] && [ "${2:-}" = "2.5.2-10" ]; then + # first, disable the rules + rm -f /etc/udev/rules.d/z60_mdadm.rules + + if echo "0843432c9c01ed95c42481eee0cf6fbf /etc/udev/mdadm.rules" \ + | md5sum -c >/dev/null; then + # no changes by user, so remove + rm -f /etc/udev/mdadm.rules + else + echo "W: I tried to remove /etc/udev/mdadm.rules (see changelog), but you" >&2 + echo "W: have modified it, so I won't touch it. Please remove the file" >&2 + echo "W: at your leisure." >&2 + fi +fi + # See #369953 set +u #DEBHELPER# @@ -142,12 +159,14 @@ if [ -x /etc/init.d/mdadm-raid ]; then fi fi +#see 2.5.3-1 changelog why this is commented out. # 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 +#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 - ln -s ../mdadm.rules $F -fi |