]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - IMG/cpio/ventoy/hook/manjaro/ventoy-disk.sh
Update README.md
[Ventoy.git] / IMG / cpio / ventoy / hook / manjaro / ventoy-disk.sh
index c1765376d931e9d6774e6a99dabe4a5eeb386e86..e325eabf0160310296b5faa646b5125d5cff8192 100644 (file)
@@ -59,7 +59,11 @@ else
         vtlog "vtLABEL is $vtLABEL from cmdline"
     fi
     
-    ln -s /dev/$vtDM "/dev/disk/by-label/$vtLABEL"
+    if [ -e "/dev/disk/by-label/$vtLABEL" ]; then
+        vtlog "/dev/disk/by-label/$vtLABEL already exist"
+    else
+        ln -s /dev/$vtDM "/dev/disk/by-label/$vtLABEL"
+    fi
 fi 
 
 # OK finish