summaryrefslogtreecommitdiff
path: root/mdmon.c
diff options
context:
space:
mode:
authormwilck@arcor.de <mwilck@arcor.de>2013-09-11 22:15:19 +0200
committerNeilBrown <neilb@suse.de>2013-09-12 15:41:45 +1000
commit5d79c72e16b32d7d6d0f535348286a7f2a966092 (patch)
tree285e8287b9eac570c6af05fafd01a164bd072bdd /mdmon.c
parentb95cb4b9d88c8adf2adb7f2efef3ae3f72b27b8e (diff)
mdmon: honour --offroot, again
commit 3e32ba9d removed support for --offroot, and a9c15847 made mdmon use @ in argv[0] only when started from initrd. This breaks mdadm in OpenSUSE 12.3, which starts mdmon from the root file system and relies on --offroot to work as documented earlier. Reintroducing --offroot as an undocumented option, as its use is going to go away soon anyway. If this can't be applied, it should probably be included as distro-specific patch if mdadm 3.3 is built for OpenSUSE 12.3. I haven't checked if the patch is necesary for OpenSUSE Factory, too. Signed-off-by: Martin Wilck <mwilck@arcor.de> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdmon.c')
-rw-r--r--mdmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdmon.c b/mdmon.c
index f0b06237..8cd53d8b 100644
--- a/mdmon.c
+++ b/mdmon.c
@@ -320,7 +320,7 @@ int main(int argc, char *argv[])
dofork = 0;
break;
case OffRootOpt:
- /* silently ignore old option */
+ argv[0][0] = '@';
break;
case 'h':
default: