mirror of
https://github.com/ventoy/Ventoy.git
synced 2024-12-26 23:25:57 -05:00
Fix the bug when booting latest KaOS. (#1696)
This commit is contained in:
parent
598af7f45c
commit
aecc579fcc
@ -49,9 +49,10 @@ ventoy_os_install_dmsetup_by_fuse() {
|
|||||||
insmod $KoName
|
insmod $KoName
|
||||||
fi
|
fi
|
||||||
|
|
||||||
umount $VTOY_PATH/mnt/squashfs
|
ventoy_check_umount $VTOY_PATH/mnt/squashfs
|
||||||
umount $VTOY_PATH/mnt/iso
|
ventoy_check_umount $VTOY_PATH/mnt/iso
|
||||||
umount $VTOY_PATH/mnt/fuse
|
ventoy_check_umount $VTOY_PATH/mnt/fuse
|
||||||
|
vtlog "umount done"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -868,3 +868,14 @@ ventoy_check_install_module_xz() {
|
|||||||
$BUSYBOX_PATH/insmod "$1"
|
$BUSYBOX_PATH/insmod "$1"
|
||||||
fi
|
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
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user