1diff --git a/mdadm.c b/mdadm.c
2index 11016e7..63962d1 100644
3--- a/mdadm.c
4+++ b/mdadm.c
5@@ -116,6 +116,13 @@ int main(int argc, char *argv[])
6 	ident.container = NULL;
7 	ident.member = NULL;
8
9+	/*
10+	 * set first char of argv[0] to @. This is used by
11+	 * systemd to signal that the task was launched from
12+	 * initrd/initramfs and should be preserved during shutdown
13+	 */
14+	argv[0][0] = '@';
15+
16 	while ((option_index = -1) ,
17 	       (opt=getopt_long(argc, argv,
18 				shortopt, long_options,
19@@ -159,16 +166,6 @@ int main(int argc, char *argv[])
20 				c.homehost = optarg;
21 			continue;
22
23-		/*
24-		 * --offroot sets first char of argv[0] to @. This is used
25-		 * by systemd to signal that the task was launched from
26-		 * initrd/initramfs and should be preserved during shutdown
27-		 */
28-		case OffRootOpt:
29-			argv[0][0] = '@';
30-			__offroot = 1;
31-			continue;
32-
33 		case Prefer:
34 			if (c.prefer)
35 				free(c.prefer);
36