diff options
Diffstat (limited to 'mdadm.install')
-rw-r--r-- | mdadm.install | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mdadm.install b/mdadm.install index 25896f30be5c..4c22c159fb09 100644 --- a/mdadm.install +++ b/mdadm.install @@ -10,7 +10,7 @@ post_upgrade() { #if [ -s '/etc/mkinitcpio.conf' ] && grep -q '^\s*HOOKS=".*\smdadm\s.*$' '/etc/mkinitcpio.conf'; then # echo "Attention mdadm update:" # echo "mdadm is deprecated for mdadm_udev" - # echo "Please update your /etc/mkinitcpio.conf accordingly." + # echo "See the ArchWiki and update your /etc/mkinitcpio.conf accordingly." #fi if ! mdadm -D --scan >/dev/null; then cat '/proc/mdstat' @@ -33,3 +33,9 @@ post_install() { fi fi } + +pre_remove() { + if [ -e '/proc/mdstat' ]; then + echo 'You still have active arrays. mdadm should be reinstalled soon.' + fi +} |