public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marc Schiffbauer" <mschiff@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/lvm2/files/, sys-fs/lvm2/
Date: Sat, 18 Feb 2017 21:29:58 +0000 (UTC)	[thread overview]
Message-ID: <1487453388.97c76ba0a6628a8c72d7a4aadebddac0c3b44559.mschiff@gentoo> (raw)

commit:     97c76ba0a6628a8c72d7a4aadebddac0c3b44559
Author:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 18 21:28:37 2017 +0000
Commit:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Sat Feb 18 21:29:48 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97c76ba0

sys-fs/lvm2: revbump 2.02.166 to fix #609416

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 .../lvm2/files/{lvm.rc-2.02.166-r1 => lvm.rc-2.02.166-r2} | 15 +++++++++++++--
 .../{lvm2-2.02.166-r1.ebuild => lvm2-2.02.166-r2.ebuild}  |  2 +-
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/sys-fs/lvm2/files/lvm.rc-2.02.166-r1 b/sys-fs/lvm2/files/lvm.rc-2.02.166-r2
similarity index 91%
rename from sys-fs/lvm2/files/lvm.rc-2.02.166-r1
rename to sys-fs/lvm2/files/lvm.rc-2.02.166-r2
index e779d2fb09..d14292c2c4 100644
--- a/sys-fs/lvm2/files/lvm.rc-2.02.166-r1
+++ b/sys-fs/lvm2/files/lvm.rc-2.02.166-r2
@@ -18,6 +18,12 @@ _need_lvmetad()
 	${lvm_path} dumpconfig global 2>/dev/null | grep -q 'use_lvmetad=1'
 }
 
+_need_lvmlockd()
+{
+	local lvm_path="$(_get_lvm_path)"
+	[ ! -x "${lvm_path}" ] && return 1
+	${lvm_path} dumpconfig global 2>/dev/null | grep -q 'use_lvmlockd=1'
+}
 depend() {
 	before checkfs fsck
 	after modules device-mapper
@@ -33,6 +39,9 @@ depend() {
 		if _need_lvmetad; then
 			_need="${_need} lvmetad"
 		fi
+		if _need_lvmlockd; then
+			_need="${_need} lvmlockd"
+		fi
 	fi
 	need sysfs ${_need}
 }
@@ -77,8 +86,10 @@ start() {
 			lvm_commands="${lvm_commands}vgscan --mknodes\n"
 			# And turn them on!
 			lvm_commands="${lvm_commands}vgchange --sysinit -a ly\n"
-			# Start lockd VGs as required
-			lvm_commands="${lvm_commands}vgchange --lock-start --lock-opt auto\n"
+			if _need_lvmlockd; then
+				# Start lockd VGs as required
+				lvm_commands="${lvm_commands}vgchange --lock-start --lock-opt auto\n"
+			fi
 			# Order of this is important, have to work around dash and LVM readline
 			printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null
 			eend $? "Failed to setup the LVM"

diff --git a/sys-fs/lvm2/lvm2-2.02.166-r1.ebuild b/sys-fs/lvm2/lvm2-2.02.166-r2.ebuild
similarity index 99%
rename from sys-fs/lvm2/lvm2-2.02.166-r1.ebuild
rename to sys-fs/lvm2/lvm2-2.02.166-r2.ebuild
index 8be6acbd8f..89fbbd63bb 100644
--- a/sys-fs/lvm2/lvm2-2.02.166-r1.ebuild
+++ b/sys-fs/lvm2/lvm2-2.02.166-r2.ebuild
@@ -246,7 +246,7 @@ src_install() {
 
 	if use !device-mapper-only ; then
 		newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd
-		newinitd "${FILESDIR}"/lvm.rc-2.02.166-r1 lvm
+		newinitd "${FILESDIR}"/lvm.rc-2.02.166-r2 lvm
 		newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm
 
 		newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring


             reply	other threads:[~2017-02-18 21:30 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-18 21:29 Marc Schiffbauer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-22 18:45 [gentoo-commits] repo/gentoo:master commit in: sys-fs/lvm2/files/, sys-fs/lvm2/ Sam James
2024-11-17 16:15 Mike Gilbert
2023-12-27 22:22 Sam James
2023-05-10 17:47 David Seifert
2023-03-07 14:20 David Seifert
2023-01-29 11:55 David Seifert
2022-12-22  3:12 Sam James
2022-10-26 23:11 Robin H. Johnson
2021-12-27  0:05 Lars Wendler
2021-10-20 12:20 Lars Wendler
2021-07-12 14:45 Mike Gilbert
2020-04-27  0:50 Thomas Deutschmann
2020-04-27  0:50 Thomas Deutschmann
2020-04-22 15:45 Thomas Deutschmann
2020-04-14 18:34 Thomas Deutschmann
2019-11-27 16:03 Lars Wendler
2019-06-02 22:31 Thomas Deutschmann
2019-04-17  7:26 Robin H. Johnson
2019-04-08 19:11 Robin H. Johnson
2018-10-11 10:39 Lars Wendler
2018-08-04 22:13 Robin H. Johnson
2018-06-06  5:31 Jeroen Roovers
2018-05-08 17:11 Robin H. Johnson
2017-07-09 22:05 Robin H. Johnson
2017-02-13 20:09 Marc Schiffbauer
2016-10-21 23:15 Robin H. Johnson
2016-03-15  3:59 Doug Goldstein
2016-03-10 15:37 Robin H. Johnson
2016-01-05  2:56 Doug Goldstein
2015-12-28  0:30 Robin H. Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1487453388.97c76ba0a6628a8c72d7a4aadebddac0c3b44559.mschiff@gentoo \
    --to=mschiff@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox