diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2012-01-25 15:18:03 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-01-30 02:11:21 +0100 |
commit | da827518c1f062e7d49433691d33e103525f9d6a (patch) | |
tree | 5c717d998e5128304eb444b634763ef61b9d03d2 /mdmon.c | |
parent | Add --offroot argument to mdadm (diff) | |
download | mdadm-da827518c1f062e7d49433691d33e103525f9d6a.tar.xz mdadm-da827518c1f062e7d49433691d33e103525f9d6a.zip |
Add --offroot argument to mdmon
Acked-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdmon.c')
-rw-r--r-- | mdmon.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -272,6 +272,10 @@ void usage(void) " --help -h : This message\n" " --all : All devices\n" " --takeover -t : Takeover container\n" +" --offroot : Set first character of argv[0] to @ to indicate the\n" +" application was launched from initrd/initramfs and\n" +" should not be shutdown by systemd as part of the\n" +" regular shutdown process.\n" ); exit(2); } @@ -291,6 +295,7 @@ int main(int argc, char *argv[]) {"all", 0, NULL, 'a'}, {"takeover", 0, NULL, 't'}, {"help", 0, NULL, 'h'}, + {"offroot", 0, NULL, OffRootOpt}, {NULL, 0, NULL, 0} }; @@ -304,6 +309,9 @@ int main(int argc, char *argv[]) container_name = optarg; takeover = 1; break; + case OffRootOpt: + argv[0][0] = '@'; + break; case 'h': default: usage(); |