[arch-commits] Commit in lvm2/trunk (0001-pvscan-wait-for-udevd.patch PKGBUILD)

Christian Hesse eworm at archlinux.org
Thu Feb 11 11:24:31 UTC 2021


    Date: Thursday, February 11, 2021 @ 11:24:31
  Author: eworm
Revision: 407829

upgpkg: lvm2 2.03.11-4: fix pvscan in initramfs

Added:
  lvm2/trunk/0001-pvscan-wait-for-udevd.patch
Modified:
  lvm2/trunk/PKGBUILD

----------------------------------+
 0001-pvscan-wait-for-udevd.patch |   28 ++++++++++++++++++++++++++++
 PKGBUILD                         |    6 +++++-
 2 files changed, 33 insertions(+), 1 deletion(-)

Added: 0001-pvscan-wait-for-udevd.patch
===================================================================
--- 0001-pvscan-wait-for-udevd.patch	                        (rev 0)
+++ 0001-pvscan-wait-for-udevd.patch	2021-02-11 11:24:31 UTC (rev 407829)
@@ -0,0 +1,28 @@
+From 675d59e9e17a55f11699471896fd6f417ea1e07b Mon Sep 17 00:00:00 2001
+From: Christian Hesse <mail at eworm.de>
+Date: Thu, 11 Feb 2021 12:01:48 +0100
+Subject: [PATCH 1/1] pvscan: wait for udevd
+
+Running the scan before udevd finished startup may result in failure.
+This has been reported for Arch Linux [0] and proper ordering fixes
+the issue.
+
+[0] https://bugs.archlinux.org/task/69611
+
+Signed-off-by: Christian Hesse <mail at eworm.de>
+---
+ scripts/lvm2-pvscan.service.in | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/scripts/lvm2-pvscan.service.in b/scripts/lvm2-pvscan.service.in
+index 09753e8c9..7b4ace551 100644
+--- a/scripts/lvm2-pvscan.service.in
++++ b/scripts/lvm2-pvscan.service.in
+@@ -4,6 +4,7 @@ Documentation=man:pvscan(8)
+ DefaultDependencies=no
+ StartLimitIntervalSec=0
+ BindsTo=dev-block-%i.device
++After=systemd-udevd.service
+ Before=shutdown.target
+ Conflicts=shutdown.target
+ 

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-11 09:50:16 UTC (rev 407828)
+++ PKGBUILD	2021-02-11 11:24:31 UTC (rev 407829)
@@ -4,7 +4,7 @@
 pkgbase=lvm2
 pkgname=('lvm2' 'device-mapper')
 pkgver=2.03.11
-pkgrel=3
+pkgrel=4
 arch=('x86_64')
 url='https://sourceware.org/lvm2/'
 license=('GPL2' 'LGPL2.1')
@@ -12,9 +12,11 @@
 validpgpkeys=('88437EF5C077BD113D3B7224228191C1567E2C17'  # Alasdair G Kergon <agk at redhat.com>
               'D501A478440AE2FD130A1BE8B9112431E509039F') # Marian Csontos <marian.csontos at gmail.com>
 source=("git+https://sourceware.org/git/lvm2.git#tag=v${pkgver//./_}?signed"
+        '0001-pvscan-wait-for-udevd.patch'
         'lvm2_install'
         '11-dm-initramfs.rules')
 sha256sums=('SKIP'
+            '69976608c4e8217f504c4ce964ab21cea722134cd9b3d0109283b3e2f3a33fbe'
             '7fae2e70b2bf3d81e5ab8710bf1c76a81e26ec10063978f21bafbdddd3790185'
             'e10f24b57582d6e2da71f7c80732a62e0ee2e3b867fe84591ccdb53e80fa92e0')
 
@@ -24,6 +26,8 @@
 prepare() {
   cd lvm2/
 
+  patch -Np1 < ../0001-pvscan-wait-for-udevd.patch
+
   local _c
   for _c in "${_backports[@]}"; do
     git log --oneline -1 "${_c}"



More information about the arch-commits mailing list