|
|
059e59 |
From a755fb8c0dfa28d57b7bbe900d3bde5d2fe4789f Mon Sep 17 00:00:00 2001
|
|
|
059e59 |
From: David Teigland <teigland@redhat.com>
|
|
|
059e59 |
Date: Wed, 8 Dec 2021 14:11:13 -0600
|
|
|
059e59 |
Subject: [PATCH] revert(lvm): remove 69-dm-lvm-metad.rules
|
|
|
059e59 |
|
|
|
059e59 |
This udev rule runs pvscan to autoactivate VGs, which dracut
|
|
|
059e59 |
does not want to do, and previously disabled by editing the
|
|
|
059e59 |
rule file and commenting out lines.
|
|
|
059e59 |
|
|
|
059e59 |
This also stops /dev/disk/by-id/lvm-pv-uuid-* symlinks from
|
|
|
059e59 |
being created in the initrd.
|
|
|
059e59 |
|
|
|
059e59 |
(cherry picked from commit 50e74668434d935db649b5690dc2158b0f87d91c)
|
|
|
059e59 |
|
|
|
059e59 |
Resolves: #2037955
|
|
|
059e59 |
---
|
|
|
059e59 |
modules.d/90lvm/module-setup.sh | 15 +--------------
|
|
|
059e59 |
1 file changed, 1 insertion(+), 14 deletions(-)
|
|
|
059e59 |
|
|
|
059e59 |
diff --git a/modules.d/90lvm/module-setup.sh b/modules.d/90lvm/module-setup.sh
|
|
|
059e59 |
index 0bb491f3..25be0133 100755
|
|
|
059e59 |
--- a/modules.d/90lvm/module-setup.sh
|
|
|
059e59 |
+++ b/modules.d/90lvm/module-setup.sh
|
|
|
059e59 |
@@ -78,20 +78,7 @@ install() {
|
|
|
059e59 |
unset LVM_SUPPRESS_FD_WARNINGS
|
|
|
059e59 |
fi
|
|
|
059e59 |
|
|
|
059e59 |
- inst_rules 11-dm-lvm.rules 69-dm-lvm-metad.rules
|
|
|
059e59 |
-
|
|
|
059e59 |
- # Do not run lvmetad update via pvscan in udev rule - lvmetad is not running yet in dracut!
|
|
|
059e59 |
- if [[ -f ${initdir}/lib/udev/rules.d/69-dm-lvm-metad.rules ]]; then
|
|
|
059e59 |
- if grep -q SYSTEMD_WANTS "${initdir}"/lib/udev/rules.d/69-dm-lvm-metad.rules; then
|
|
|
059e59 |
- sed -i -e 's/^ENV{SYSTEMD_ALIAS}=.*/# No LVM pvscan in dracut - lvmetad is not running yet/' \
|
|
|
059e59 |
- "${initdir}"/lib/udev/rules.d/69-dm-lvm-metad.rules
|
|
|
059e59 |
- sed -i -e 's/^ENV{ID_MODEL}=.*//' "${initdir}"/lib/udev/rules.d/69-dm-lvm-metad.rules
|
|
|
059e59 |
- sed -i -e 's/^ENV{SYSTEMD_WANTS}+\?=.*//' "${initdir}"/lib/udev/rules.d/69-dm-lvm-metad.rules
|
|
|
059e59 |
- else
|
|
|
059e59 |
- sed -i -e 's/.*lvm pvscan.*/# No LVM pvscan for in dracut - lvmetad is not running yet/' \
|
|
|
059e59 |
- "${initdir}"/lib/udev/rules.d/69-dm-lvm-metad.rules
|
|
|
059e59 |
- fi
|
|
|
059e59 |
- fi
|
|
|
059e59 |
+ inst_rules 11-dm-lvm.rules
|
|
|
059e59 |
|
|
|
059e59 |
# Gentoo ebuild for LVM2 prior to 2.02.63-r1 doesn't install above rules
|
|
|
059e59 |
# files, but provides the one below:
|
|
|
059e59 |
|