This commit is contained in:
illiliti 2020-02-13 23:25:49 +03:00
parent bb2449cecd
commit a984c4d091

View File

@ -38,7 +38,6 @@
umask 077
# TODO use /tmp
storage_dir="/tmp/.mdev-like-a-boss"
[ -d "$storage_dir" ] || mkdir "$storage_dir"
@ -77,7 +76,6 @@ add_symlinks() {
if [ -f "/sys/block/${MDEV}/dm/name" ]; then
[ -d /dev/mapper ] || mkdir /dev/mapper
if ! [ -c /dev/mapper/control ]; then
#awk '$2 == "device-mapper" { foo = system("mknod /dev/mapper/control c 10 " $1); exit foo }' /proc/misc || exit 1
while read -r dm; do
[ "${dm#* }" = device-mapper ] && {
mknod /dev/mapper/control c 10 "${dm% *}" || exit 1