Blame SOURCES/0010-udev-vgchange-skip-hints-and-keep-transient-service-.patch

9db2f0
From d45b26023747c1da95e18753a45b31e47090aa40 Mon Sep 17 00:00:00 2001
9db2f0
From: David Teigland <teigland@redhat.com>
9db2f0
Date: Thu, 22 Jul 2021 13:27:35 -0500
9db2f0
Subject: [PATCH 10/11] udev vgchange: skip hints and keep transient service
9db2f0
 record
9db2f0
9db2f0
Using hints with vgchange in the udev rule is not helpful because
9db2f0
repeated pvscans during startup are constantly invalidating hints.
9db2f0
9db2f0
Use -r with systemd-run so that the transient service used to
9db2f0
run vgchange remains visible and can be inspected.
9db2f0
---
9db2f0
 udev/69-dm-lvm.rules.in | 2 +-
9db2f0
 1 file changed, 1 insertion(+), 1 deletion(-)
9db2f0
9db2f0
diff --git a/udev/69-dm-lvm.rules.in b/udev/69-dm-lvm.rules.in
9db2f0
index 03c8fbb..70f2b37 100644
9db2f0
--- a/udev/69-dm-lvm.rules.in
9db2f0
+++ b/udev/69-dm-lvm.rules.in
9db2f0
@@ -80,7 +80,7 @@ ENV{SYSTEMD_READY}="1"
9db2f0
 # it's better suited to appearing in the journal.
9db2f0
 
9db2f0
 IMPORT{program}="(LVM_EXEC)/lvm pvscan --cache --listvg --checkcomplete --vgonline --udevoutput --journal=output $env{DEVNAME}"
9db2f0
-ENV{LVM_VG_NAME_COMPLETE}=="?*", RUN+="/usr/bin/systemd-run --no-block --property DefaultDependencies=no --unit lvm-activate-$env{LVM_VG_NAME_COMPLETE} lvm vgchange -aay $env{LVM_VG_NAME_COMPLETE}"
9db2f0
+ENV{LVM_VG_NAME_COMPLETE}=="?*", RUN+="/usr/bin/systemd-run -r --no-block --property DefaultDependencies=no --unit lvm-activate-$env{LVM_VG_NAME_COMPLETE} lvm vgchange -aay --config devices/hints=none $env{LVM_VG_NAME_COMPLETE}"
9db2f0
 GOTO="lvm_end"
9db2f0
 
9db2f0
 LABEL="lvm_end"
9db2f0
-- 
9db2f0
1.8.3.1
9db2f0