lvm2: Create lock files in /run/lvm

The default is /var/lock which is not mounted at the time
when udev is initialising the volumes. Therefore after a
reboot, LVM devices won't show up unless pvscan is executed
manually.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Michael Tremer
2020-01-15 15:20:11 +00:00
committed by Arne Fitzenreiter
parent c835011d6e
commit dd5e20120e

View File

@@ -80,6 +80,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
--with-usrlibdir=/usr/lib \
--enable-pkgconfig \
--with-udevdir=/lib/udev/rules.d \
--with-default-locking-dir=/run/lvm \
--enable-lvmetad \
--enable-udev_rules \
--enable-udev_sync