mdmon: honour --offroot, again
PATCH 1/1 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.
--- mdmon.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
mdmon.c +1 -1
@@ -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 :
Signature · 1 line
1.7.3.4
Quoted 23 lines · On Wed, 11 Sep 2013 22:15:19 +0200 [email protected] wrote:
commit
3e32ba9dremoved support for --offroot, anda9c15847made 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 <[email protected]>--- mdmon.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)mdmon.c +0
-0
mdmon.c int main(int argc, char *argv[]) · line 326
Quoted 8 lines
mdmon.c +1
-1@@ -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 :
Aggh... This is all pretty horrible isn't it?
I've applied your patch because I don't think it can break anything and it could possible help as you say.
Thanks,
NeilBrown
Quoted 10 lines · NeilBrown
Quoted 3 lines · On Wed, 11 Sep 2013 22:15:19 +0200 [email protected] wrote:
Reintroducing --offroot as an undocumented option, as its use is going to go away soon anyway.
Aggh... This is all pretty horrible isn't it?
I've applied your patch because I don't think it can break anything and it could possible help as you say.
I just verified that OpenSUSE Factory still needs this patch as well. Fedora is probably the only distribution that "properly" (according to the systemd developers) starts and stops mdmon from "offroot" (i.e. initrd).
Martin
Quoted 7 lines · On Thu, 12 Sep 2013 20:25:46 +0200 Martin Wilck <[email protected]> wrote:
Quoted 6 lines · NeilBrown
Quoted 3 lines · On Wed, 11 Sep 2013 22:15:19 +0200 [email protected] wrote:
Reintroducing --offroot as an undocumented option, as its use is going to go away soon anyway.
Quoted 9 lines
Quoted 4 lines
Aggh... This is all pretty horrible isn't it?
I've applied your patch because I don't think it can break anything and it could possible help as you say.
I just verified that OpenSUSE Factory still needs this patch as well. Fedora is probably the only distribution that "properly" (according to the systemd developers) starts and stops mdmon from "offroot" (i.e. initrd).
Thanks ... I'd better include it in my update for openSUSE 13.1-rc1 then ;-)
NeilBrown