32c4fd31de
update lvm2 & split thin-provisioning-tools &fix bsc#960044 OBS-URL: https://build.opensuse.org/request/show/356420 OBS-URL: https://build.opensuse.org/package/show/Base:System/lvm2?expand=0&rev=145
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From 4b846bba24f8458130fa951f9248a7540084f641 Mon Sep 17 00:00:00 2001
|
|
From: Liuhua Wang <lwang@suse.com>
|
|
Date: Tue, 29 Dec 2015 15:15:27 +0800
|
|
Subject: [PATCH] lvm2-lvmetad.service add Also=lvm2-lvmetad.socket
|
|
|
|
In order to avoid lvm2-lvmetad.service being activated when package
|
|
updating due to `systemctl restart/try-restart .socket` results in
|
|
corresponding service being activeted, we removed lvm2-lvmetad.socket
|
|
from %preun and %postun(bsc#914415), which causes brokent lvm2-lvmetad
|
|
.socket symbolic link left when package being uninstalled.
|
|
|
|
Add 'Also=lvm2-lvmetad.socket' in '[Install]' section of lvm2-lvmetad.
|
|
service to remove lvm2-lvmetad.socket when disable lvm2-lvmetad.service.
|
|
|
|
References: bsc#960044
|
|
Signed-off-by: lwang@suse.com
|
|
---
|
|
scripts/lvm2_lvmetad_systemd_red_hat.service.in | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/scripts/lvm2_lvmetad_systemd_red_hat.service.in b/scripts/lvm2_lvmetad_systemd_red_hat.service.in
|
|
index 8f4c60d..1deca87 100644
|
|
--- a/scripts/lvm2_lvmetad_systemd_red_hat.service.in
|
|
+++ b/scripts/lvm2_lvmetad_systemd_red_hat.service.in
|
|
@@ -15,4 +15,5 @@ Restart=on-abort
|
|
PIDFile=@LVMETAD_PIDFILE@
|
|
|
|
[Install]
|
|
+Also=lvm2-lvmetad.socket
|
|
WantedBy=sysinit.target
|
|
--
|
|
1.8.4.5
|
|
|