|
Harald Hoyer |
460d2c |
From 07417b7fc5cb261187519c916e4735189f20f4c6 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
460d2c |
From: Alexander Tsoy <alexander@tsoy.me>
|
|
Harald Hoyer |
460d2c |
Date: Sat, 23 May 2020 18:03:47 +0300
|
|
Harald Hoyer |
460d2c |
Subject: [PATCH] lvm: fix removal of pvscan from udev rules
|
|
Harald Hoyer |
460d2c |
|
|
Harald Hoyer |
460d2c |
udev rules provided by lvm 2.02.128 and newer uses '+=' instead of '='.
|
|
Harald Hoyer |
460d2c |
---
|
|
Harald Hoyer |
460d2c |
modules.d/90lvm/module-setup.sh | 2 +-
|
|
Harald Hoyer |
460d2c |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Harald Hoyer |
460d2c |
|
|
Harald Hoyer |
460d2c |
diff --git a/modules.d/90lvm/module-setup.sh b/modules.d/90lvm/module-setup.sh
|
|
Harald Hoyer |
460d2c |
index d6d2c185..52c803f7 100755
|
|
Harald Hoyer |
460d2c |
--- a/modules.d/90lvm/module-setup.sh
|
|
Harald Hoyer |
460d2c |
+++ b/modules.d/90lvm/module-setup.sh
|
|
Harald Hoyer |
460d2c |
@@ -101,7 +101,7 @@ install() {
|
|
Harald Hoyer |
460d2c |
sed -i -e 's/^ENV{SYSTEMD_ALIAS}=.*/# No LVM pvscan in dracut - lvmetad is not running yet/' \
|
|
Harald Hoyer |
460d2c |
${initdir}/lib/udev/rules.d/69-dm-lvm-metad.rules
|
|
Harald Hoyer |
460d2c |
sed -i -e 's/^ENV{ID_MODEL}=.*//' ${initdir}/lib/udev/rules.d/69-dm-lvm-metad.rules
|
|
Harald Hoyer |
460d2c |
- sed -i -e 's/^ENV{SYSTEMD_WANTS}=.*//' ${initdir}/lib/udev/rules.d/69-dm-lvm-metad.rules
|
|
Harald Hoyer |
460d2c |
+ sed -i -e 's/^ENV{SYSTEMD_WANTS}+\?=.*//' ${initdir}/lib/udev/rules.d/69-dm-lvm-metad.rules
|
|
Harald Hoyer |
460d2c |
else
|
|
Harald Hoyer |
460d2c |
sed -i -e 's/.*lvm pvscan.*/# No LVM pvscan for in dracut - lvmetad is not running yet/' \
|
|
Harald Hoyer |
460d2c |
${initdir}/lib/udev/rules.d/69-dm-lvm-metad.rules
|
|
Harald Hoyer |
460d2c |
|