~ruther/guix-local

ref: 075941c266336d3a1e2ba34664b5a9addcd8dfd4 guix-local/gnu/packages/patches/lvm2-no-systemd.patch -rw-r--r-- 944 bytes
075941c2 — Nicolas Graves gnu: mercurial: Fix, wrap and check hg binary. 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Fixes <https://issues.guix.gnu.org/65177>.

Run 'vgchange' directly instead of attempting to run it via 'systemd-run' as
the udev rules included in lvm2 >= 2.03.14 do.

diff --git a/udev/69-dm-lvm.rules.in b/udev/69-dm-lvm.rules.in
index ff1568145..8879a2ef9 100644
--- a/udev/69-dm-lvm.rules.in
+++ b/udev/69-dm-lvm.rules.in
@@ -76,7 +76,7 @@ LABEL="lvm_scan"
 # it's better suited to appearing in the journal.

 IMPORT{program}="(LVM_EXEC)/lvm pvscan --cache --listvg --checkcomplete --vgonline --autoactivation event --udevoutput --journal=output $env{DEVNAME}"
-ENV{LVM_VG_NAME_COMPLETE}=="?*", RUN+="(SYSTEMDRUN) --no-block --property DefaultDependencies=no --unit lvm-activate-$env{LVM_VG_NAME_COMPLETE} (LVM_EXEC)/lvm vgchange -aay --autoactivation event $env{LVM_VG_NAME_COMPLETE}"
+ENV{LVM_VG_NAME_COMPLETE}=="?*", RUN+="(LVM_EXEC)/lvm vgchange -aay --autoactivation event $env{LVM_VG_NAME_COMPLETE}"
 GOTO="lvm_end"

 LABEL="lvm_end"