[packages/systemd] Release: 12. Using vgscan --cache on startup.

matkor matkor at pld-linux.org
Tue Jan 26 13:12:04 CET 2016


commit d233288754556ef213e5ce340074ce5375bf9468
Author: Mateusz Korniak <matkor at pld-linux.org>
Date:   Tue Jan 26 12:29:48 2016 +0100

    Release: 12. Using vgscan --cache on startup.

 pld-storage-init.sh | 4 +++-
 systemd.spec        | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/systemd.spec b/systemd.spec
index c462207..3bc27ee 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -28,7 +28,7 @@ Summary(pl.UTF-8):	systemd - zarządca systemu i usług dla Linuksa
 Name:		systemd
 # Verify ChangeLog and NEWS when updating (since there are incompatible/breaking changes very often)
 Version:	221
-Release:	11
+Release:	12
 Epoch:		1
 License:	GPL v2+ (udev), LGPL v2.1+ (the rest)
 Group:		Base
@@ -223,6 +223,8 @@ Conflicts:	libgpod < 0.8.0-6
 Conflicts:	libvirt-utils < 0.9.9-4
 Conflicts:	lighttpd < 1.4.30-5
 Conflicts:	lirc < 0.9.0-20
+# Needed for vgscan --cache  ( perhaps < 2.02.96 would be enough, but not tested)
+Conflicts:	lvm2 < 2.02.132
 Conflicts:	mailman < 5:2.1.14-4
 Conflicts:	memcached < 1.4.11-2
 Conflicts:	mpd < 0.16.5-4
diff --git a/pld-storage-init.sh b/pld-storage-init.sh
index c153727..7673c59 100644
--- a/pld-storage-init.sh
+++ b/pld-storage-init.sh
@@ -31,7 +31,9 @@ fi
 
 if ! is_no "$LVM2" && [ -x /sbin/lvm ]; then
 	modprobe -s dm-mod >/dev/null 2>&1
-	run_cmd "Scanning for LVM volume groups" /sbin/lvm vgscan --ignorelockingfailure
+	# --cache to initiate direct device scan and update lvmetad appropriately (if running).
+	# See http://lists.pld-linux.org/mailman/pipermail/pld-devel-pl/2016-January/157230.html
+	run_cmd "Scanning for LVM volume groups" /sbin/lvm vgscan --ignorelockingfailure --cache
 	run_cmd "Activating LVM volume groups" /sbin/lvm vgchange -a y --sysinit
 	/sbin/lvm vgmknodes --ignorelockingfailure
 fi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/systemd.git/commitdiff/d233288754556ef213e5ce340074ce5375bf9468



More information about the pld-cvs-commit mailing list