diff options
author | Dmitrijs Ledkovs <dmitrijs.ledkovs@canonical.com> | 2012-06-15 14:51:47 +0100 |
---|---|---|
committer | Dmitrijs Ledkovs <dmitrijs.ledkovs@canonical.com> | 2012-06-25 13:39:18 +0100 |
commit | 5876c26bec473a625cbb93cda5a9dedef6153064 (patch) | |
tree | de1400eb5606a601a046621db19dcbefeead73e8 /debian/mdadm.postinst | |
parent | c9bc5d1829868f6ce20594a9eb5d188c49139ddc (diff) |
Use dh_installinit with --no-restart-on-upgrade, which will start arrays, but will not stop them during upgrade.
Diffstat (limited to 'debian/mdadm.postinst')
-rw-r--r-- | debian/mdadm.postinst | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/debian/mdadm.postinst b/debian/mdadm.postinst index 56d3cb37..8dc90b8a 100644 --- a/debian/mdadm.postinst +++ b/debian/mdadm.postinst @@ -181,14 +181,3 @@ fi # See #369953 set +u #DEBHELPER# -set -u - -# do start mdadm-raid, but don't use dh_installinit to do so, to prevent -# stopping raids on remove/upgrade. -if [ -x /etc/init.d/mdadm-raid ]; then - if [ -x "$(command -v invoke-rc.d)" ]; then - invoke-rc.d mdadm-raid start || exit $? - else - /etc/init.d/mdadm-raid start || exit $? - fi -fi |