[packages/lvm2] add workaround for long systemd shutdown times; rel 3

atler atler at pld-linux.org
Mon Apr 1 12:03:55 CEST 2019


commit c13bb39df39e81dbfa08aa72e7f7b9b4c0c0d2db
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Apr 1 12:02:14 2019 +0200

    add workaround for long systemd shutdown times; rel 3
    
    see https://github.com/systemd/systemd/issues/11821

 lvm2-systemd_shutdown.patch | 11 +++++++++++
 lvm2.spec                   |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/lvm2.spec b/lvm2.spec
index 4e8ee17..1b55775 100644
--- a/lvm2.spec
+++ b/lvm2.spec
@@ -57,13 +57,14 @@ Summary:	The new version of Logical Volume Manager for Linux
 Summary(pl.UTF-8):	Nowa wersja Logical Volume Managera dla Linuksa
 Name:		lvm2
 Version:	2.02.183
-Release:	2
+Release:	3
 License:	GPL v2 and LGPL v2.1
 Group:		Applications/System
 Source0:	ftp://sources.redhat.com/pub/lvm2/LVM2.%{version}.tgz
 # Source0-md5:	ca0c352f82f0878228ce9dff8badc051
 Source2:	clvmd.service
 Source3:	clvmd.sysconfig
+Patch0:		%{name}-systemd_shutdown.patch
 Patch1:		%{name}-diet.patch
 Patch2:		device-mapper-dmsetup-export.patch
 Patch3:		%{name}-pld_init.patch
@@ -389,6 +390,7 @@ potrzeby initrd.
 
 %prep
 %setup -q -n LVM2.%{version}
+%patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
diff --git a/lvm2-systemd_shutdown.patch b/lvm2-systemd_shutdown.patch
new file mode 100644
index 0000000..3b7fe02
--- /dev/null
+++ b/lvm2-systemd_shutdown.patch
@@ -0,0 +1,11 @@
+diff -urN LVM2.2.02.183.orig/scripts/lvm2_lvmetad_systemd_red_hat.service.in LVM2.2.02.183/scripts/lvm2_lvmetad_systemd_red_hat.service.in
+--- LVM2.2.02.183.orig/scripts/lvm2_lvmetad_systemd_red_hat.service.in	2019-04-01 11:51:35.674457454 +0200
++++ LVM2.2.02.183/scripts/lvm2_lvmetad_systemd_red_hat.service.in	2019-04-01 11:52:14.364195746 +0200
+@@ -5,6 +5,7 @@
+ After=lvm2-lvmetad.socket
+ DefaultDependencies=no
+ Conflicts=shutdown.target
++Before=shutdown.target
+ 
+ [Service]
+ Type=simple
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lvm2.git/commitdiff/c13bb39df39e81dbfa08aa72e7f7b9b4c0c0d2db



More information about the pld-cvs-commit mailing list