mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
move /run/lvm to the beginning
This commit is contained in:
parent
3b1fb6cea5
commit
96d435d9b1
1 changed files with 2 additions and 2 deletions
|
@ -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|:| |')
|
||||
|
|
Loading…
Reference in a new issue