---
snippets/keep_ssh_host_keys | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/snippets/keep_ssh_host_keys b/snippets/keep_ssh_host_keys
index edf0698..78fd059 100644
--- a/snippets/keep_ssh_host_keys
+++ b/snippets/keep_ssh_host_keys
@@ -61,6 +61,11 @@ if [ "$keys_found" = "no" ]; then
if mdadm -As; then
DISKS=$(awk '/md/{print "/dev/"$1}' /proc/mdstat)
findkeys
+ # unmount and deactivate all md
+ for md in $DISKS ; do
+ umount $md
+ mdadm -S $md
+ done
fi
fi
--
1.7.1