diff options
author | martin f. krafft <madduck@madduck.net> | 2008-06-24 21:27:01 +0100 |
---|---|---|
committer | martin f. krafft <madduck@madduck.net> | 2008-06-24 21:47:46 +0100 |
commit | 36952ccce00b439764eb846b170ffe86e72e0a99 (patch) | |
tree | fd819e76d19b47fbec38a66177413f91aefdee99 /debian/mdadm.postinst | |
parent | 677b5400b5564373e0030ddda1ff63ccf79f529b (diff) |
Moved mdadm-raid init.d script to position S60 (from S50) for runlevels 0 and 6, so that arrays get stopped after cryptdisks-early; thanks to J.M.Roth (closes: #486012).
Diffstat (limited to 'debian/mdadm.postinst')
-rw-r--r-- | debian/mdadm.postinst | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/debian/mdadm.postinst b/debian/mdadm.postinst index 43dd5d66..e15159d7 100644 --- a/debian/mdadm.postinst +++ b/debian/mdadm.postinst @@ -173,7 +173,15 @@ esac if [ "${1:-}" = "configure" ] && [ "${2:-}" = "1.9.0-2.1" ] \ && test -L /etc/rcS.d/S04mdadm-raid; then - update-rc.d -f mdadm-raid remove + update-rc.d -f mdadm-raid remove +fi + +if [ "${1:-}" = "configure" ] && dpkg --compare-versions ${2:-2.6.7-1} lt 2.6.7-1; then + # stop RAIDs a bit later, see #486012 + for i in 0 6; do + test -L /etc/rc${i}.d/S50mdadm-raid && test ! -L /etc/rc${i}.d/S60mdadm-raid \ + && mv /etc/rc${i}.d/S50mdadm-raid /etc/rc${i}.d/S60mdadm-raid + done fi # See #369953 |