]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - IMG/cpio/ventoy/hook/rhel7/ventoy-make-link.sh
Fix a bug when install Ventoy if the USB already mounted at a path that contains...
[Ventoy.git] / IMG / cpio / ventoy / hook / rhel7 / ventoy-make-link.sh
index 22a3dd4acd65090884af324ffc7d8fa93ea834af..ee68b12459b24331bd7ca4bd9659f96f40601c57 100644 (file)
 
 . /ventoy/hook/ventoy-hook-lib.sh
 
+if [ ! -e /dev/dm-0 ]; then
+    exit 0
+fi
+
 if ! [ -e /dev/mapper/ventoy ]; then
     vtlog "link to /dev/mapper/ventoy"
     ln -s /dev/dm-0 /dev/mapper/ventoy