]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
lvm2: Create lock files in /run/lvm
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 15 Jan 2020 15:20:11 +0000 (15:20 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 16 Jan 2020 18:23:11 +0000 (18:23 +0000)
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>
lfs/lvm2

index b95c4751763ff162cc54d5a24e56c52115050e08..a9e02b6922946eec1f35f7792e1c3ceae2ac8f28 100644 (file)
--- a/lfs/lvm2
+++ b/lfs/lvm2
@@ -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