fix lvm2 hook to add /run/lvm manually

This commit is contained in:
Tobias Powalowski 2013-08-20 16:37:05 +02:00
parent 4b8717195b
commit 3b1fb6cea5

View file

@ -7,6 +7,8 @@ run_hook ()
modprobe -q dm-mirror >/dev/null 2>&1
# fix if udev initialises /dev/mapper/control
udevadm settle
# fix missing tmpfiles.d support in early userspace
[ ! -d "/run/lvm" ] && mkdir /run/lvm
if [ -e "/sys/class/misc/device-mapper" ]; then
if [ ! -e "/dev/mapper/control" ]; then
mknod "/dev/mapper/control" c $(cat /sys/class/misc/device-mapper/dev | sed 's|:| |')