From: Michael Prokop Date: Fri, 26 May 2017 21:13:17 +0000 (+0200) Subject: Update instructions for manual mdadm start, drop --auto=yes --symlink=no from swraid X-Git-Tag: v0.15.8~2 X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=5086a8bf8d7ab099ba71c04967a1671a61ed5eb8 Update instructions for manual mdadm start, drop --auto=yes --symlink=no from swraid The "--auto=yes --symlink=no" options shouldn't be relevant any longer (symlink actually doesn't seem to do what it's supposed). The "mdmonitor" service doesn't do what we thought it does, so instead recommend usage of "mdadm --assemble --scan" instead. Related to grml/grml#45 --- diff --git a/autoconfig.functions b/autoconfig.functions index dc3e045..da09d89 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1589,7 +1589,7 @@ config_swraid(){ if ! checkbootparam 'swraid' ; then eindent if $SYSTEMD ; then - einfo "Just run 'Start mdmonitor' to assemble md arrays or boot using 'swraid' as bootoption for autostart." + einfo "Just run 'mdadm --assemble --scan' to assemble md arrays or boot using 'swraid' as bootoption for autostart." else einfo "Just run 'Start mdadm-raid' to assemble md arrays or boot using 'swraid' as bootoption for autostart." fi @@ -1599,7 +1599,7 @@ config_swraid(){ eindent IFSOLD=${IFS:-} IFS=$'\n' - for line in $(mdadm --assemble --scan --auto=yes --symlink=no 2>&1) ; do + for line in $(mdadm --assemble --scan 2>&1) ; do case $line in *'No arrays found'*) ewarn "$line" ; eend 0