]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - IMG/cpio/ventoy/hook/ventoy-hook-lib.sh
Fix the bug when booting latest KaOS. (#1696)
[Ventoy.git] / IMG / cpio / ventoy / hook / ventoy-hook-lib.sh
index db33eec220f4c44746a1888e799e56fa65a80020..7f24c428b2df4baef5ed43b461b8279de891f051 100644 (file)
@@ -868,3 +868,14 @@ ventoy_check_install_module_xz() {
         $BUSYBOX_PATH/insmod "$1"
     fi
 }
+
+ventoy_check_umount() {
+    for vtLoop in 0 1 2 3 4 5 6 7 8 9; do
+        $BUSYBOX_PATH/umount "$1" > /dev/null 2>&1
+        if $BUSYBOX_PATH/mountpoint -q "$1"; then
+            $SLEEP 1
+        else
+            break
+        fi
+    done
+}