summaryrefslogtreecommitdiff
path: root/udev
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2021-12-14 11:57:13 -0600
committerDavid Teigland <teigland@redhat.com>2021-12-14 11:57:13 -0600
commitfbd8b0cf43dc67f51f86f060dce748f446985855 (patch)
treec7fb5ac1e956f3bfd72b9fddf633ef5e93baa9aa /udev
parent6a431eb24241caf2277d3e5b4718782d92650a2a (diff)
downloadlvm2-fbd8b0cf43dc67f51f86f060dce748f446985855.tar.gz
udev: remove -r from systemd-run
If the transient service remains after it's done, then it prevents the same transient service from being run again later if the PVs are detached and reattached (although the behavior of a second autoactivation is not well defined and may only work in limited cases.)
Diffstat (limited to 'udev')
-rw-r--r--udev/69-dm-lvm.rules.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/69-dm-lvm.rules.in b/udev/69-dm-lvm.rules.in
index 4f34b2cc2..14e7dd26d 100644
--- a/udev/69-dm-lvm.rules.in
+++ b/udev/69-dm-lvm.rules.in
@@ -80,7 +80,7 @@ ENV{SYSTEMD_READY}="1"
# 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+="/usr/bin/systemd-run -r --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+="/usr/bin/systemd-run --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}"
GOTO="lvm_end"
LABEL="lvm_end"