On 06/03/2011 01:59 PM, Jonathan G. Underwood wrote:
---
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..07c36d9 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
Shouldn't that be
for md in $DISKS l do
^
Mark