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