[4/5] lvm2: Create lock files in /run/lvm

Message ID 20200115152012.12345-4-michael.tremer@ipfire.org
State Accepted
Commit dd5e20120e1fdd49106b3c3847e01c5a3be4aac5
Headers
Series [1/5] lvm2: Ship with core system |

Commit Message

Michael Tremer Jan. 15, 2020, 3:20 p.m. UTC
  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>
---
 lfs/lvm2 | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/lfs/lvm2 b/lfs/lvm2
index b95c47517..a9e02b692 100644
--- 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