Blame SOURCES/mdadm-grow-reshape-would1-be-stuck-from-raid1-to-raid.patch

b7f731
From 5b2846684ef5172eccc432e3520b79efbc2abba5 Mon Sep 17 00:00:00 2001
b7f731
From: Zhilong Liu <zlliu@suse.com>
b7f731
Date: Thu, 30 Mar 2017 15:38:08 +0800
b7f731
Subject: [RHEL7.5 PATCH 044/169] mdadm/grow: reshape would be stuck from
b7f731
 raid1 to raid5
b7f731
b7f731
systemctl doesn't interpret mdadm-grow-continue@.service
b7f731
correctly due to the wrong argument provided in [service],
b7f731
it should be corrected %I as %i. Otherwise, if the service
b7f731
cannot start by systemctl and the reshap progress would be
b7f731
stuck all time when grows array from raid1 to raid5.
b7f731
b7f731
reproduce steps:
b7f731
./mdadm -CR /dev/md0 -l1 -b internal -n2 /dev/loop[0-1]
b7f731
./mdadm --grow /dev/md0 -l5 -n3 -a /dev/loop2
b7f731
b7f731
Signed-off-by: Zhilong Liu <zlliu@suse.com>
b7f731
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
b7f731
---
b7f731
 systemd/mdadm-grow-continue@.service | 2 +-
b7f731
 1 file changed, 1 insertion(+), 1 deletion(-)
b7f731
b7f731
diff --git a/systemd/mdadm-grow-continue@.service b/systemd/mdadm-grow-continue@.service
b7f731
index 5c667d2..882bc0b 100644
b7f731
--- a/systemd/mdadm-grow-continue@.service
b7f731
+++ b/systemd/mdadm-grow-continue@.service
b7f731
@@ -10,7 +10,7 @@ Description=Manage MD Reshape on /dev/%I
b7f731
 DefaultDependencies=no
b7f731
 
b7f731
 [Service]
b7f731
-ExecStart=BINDIR/mdadm --grow --continue /dev/%I
b7f731
+ExecStart=BINDIR/mdadm --grow --continue /dev/%i
b7f731
 StandardInput=null
b7f731
 StandardOutput=null
b7f731
 StandardError=null
b7f731
-- 
b7f731
2.7.4
b7f731