Blame SOURCES/mdadm-3.2.6-Don-t-lie-to-systemd-about-mdadm-s-status.patch

fc6001
From 879982efa90c8cf6b7afc708316cf47c4247bfe3 Mon Sep 17 00:00:00 2001
fc6001
From: NeilBrown <neilb@suse.de>
fc6001
Date: Thu, 1 Aug 2013 14:04:07 +1000
fc6001
Subject: [PATCH] Don't lie to systemd about mdadm's status.
fc6001
fc6001
Telling systemd that mdadm was started from the initrd
fc6001
is often a lie and never necessary.  Now that the reshape monitoring
fc6001
thread handles SIGTERM gracefully it is OK for system to kill
fc6001
and mdadm that it finds running.
fc6001
fc6001
mdmon still have a bit of a question mark over it so I won't remove
fc6001
the '@' from there just yet.
fc6001
fc6001
Signed-off-by: NeilBrown <neilb@suse.de>
fc6001
---
fc6001
 mdadm.c | 7 -------
fc6001
 1 file changed, 7 deletions(-)
fc6001
fc6001
diff --git a/mdadm.c b/mdadm.c
fc6001
index a46a716..86a4fad 100644
fc6001
--- a/mdadm.c
fc6001
+++ b/mdadm.c
fc6001
@@ -116,13 +116,6 @@ int main(int argc, char *argv[])
fc6001
 	ident.container = NULL;
fc6001
 	ident.member = NULL;
fc6001
 
fc6001
-	/*
fc6001
-	 * set first char of argv[0] to @. This is used by
fc6001
-	 * systemd to signal that the task was launched from
fc6001
-	 * initrd/initramfs and should be preserved during shutdown
fc6001
-	 */
fc6001
-	argv[0][0] = '@';
fc6001
-
fc6001
 	while ((option_index = -1) ,
fc6001
 	       (opt=getopt_long(argc, argv,
fc6001
 				shortopt, long_options,
fc6001
-- 
fc6001
1.8.4.2
fc6001