move /run/lvm to the beginning

This commit is contained in:
Tobias Powalowski 2013-08-20 17:04:28 +02:00
parent 3b1fb6cea5
commit 96d435d9b1

View file

@ -3,12 +3,12 @@
run_hook ()
{
if ! [ "$LVMRUN" = "1" ]; then
# fix missing tmpfiles.d support in early userspace
[ ! -d "/run/lvm" ] && mkdir /run/lvm
modprobe -q dm-mod >/dev/null 2>&1
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|:| |')