Comparing the working lvm package (2.03.07-1+b1) with the next package
that has the problem (2.03.09-1), after some tests I was able to solve
the problem quite simply:
- copy the file: "69-lvm-metad.rules" of the working version in
"/lib/udev/rules.d/69-lvm-metad.rules"
- and regenerate initram: "update-initramfs -u"
repeating the test, the problem was solved (for me)
Thanks
Antonio
----------------------------------------------------------------------------------------------------------------------------
--- /lib/udev/rules.d/69-lvm-metad.rules 2021-01-18
10:42:53.673808888 +0100
+++ /lib/udev/rules.d/69-lvm-metad.rules 2021-01-18
11:07:17.154831718 +0100
@@ -68,15 +68,17 @@
# For "systemd_background" mode, systemd takes care of this by activating
# the [email protected] only once.
LABEL="next"
-TEST!="/run/systemd/system", ACTION!="add", GOTO="lvm_end"
-TEST=="/run/systemd/system", ACTION!="add|change", GOTO="lvm_end"
+ACTION!="add|change", GOTO="lvm_end"
LABEL="lvm_scan"
ENV{SYSTEMD_READY}="1"
-TEST!="/run/systemd/system", GOTO="direct_pvscan"
-TEST=="/run/systemd/system", GOTO="systemd_background"
+# The method for invoking pvscan is selected at build time with the option
+# --(enable|disable)-udev-systemd-background-jobs to "configure".
+# On modern distributions with recent systemd, it's "systemd_background";
+# on others, "direct_pvscan".
+GOTO="systemd_background"
LABEL="systemd_background"
----------------------------------------------------------------------------------------------------------------------------
--- /lib/udev/rules.d/69-lvm-metad.rules 2021-01-18 10:42:53.673808888
+0100
+++ /lib/udev/rules.d/69-lvm-metad.rules 2021-01-18 11:07:17.154831718
+0100
@@ -68,15 +68,17 @@
# For "systemd_background" mode, systemd takes care of this by activating
# the [email protected] only once.
LABEL="next"
-TEST!="/run/systemd/system", ACTION!="add", GOTO="lvm_end"
-TEST=="/run/systemd/system", ACTION!="add|change", GOTO="lvm_end"
+ACTION!="add|change", GOTO="lvm_end"
LABEL="lvm_scan"
ENV{SYSTEMD_READY}="1"
-TEST!="/run/systemd/system", GOTO="direct_pvscan"
-TEST=="/run/systemd/system", GOTO="systemd_background"
+# The method for invoking pvscan is selected at build time with the option
+# --(enable|disable)-udev-systemd-background-jobs to "configure".
+# On modern distributions with recent systemd, it's "systemd_background";
+# on others, "direct_pvscan".
+GOTO="systemd_background"
LABEL="systemd_background"