Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
aecc579f
Commit
aecc579f
authored
Jun 27, 2022
by
longpanda
Browse files
Fix the bug when booting latest KaOS. (#1696)
parent
598af7f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
IMG/cpio/ventoy/hook/kaos/ventoy-disk.sh
IMG/cpio/ventoy/hook/kaos/ventoy-disk.sh
+4
-3
IMG/cpio/ventoy/hook/ventoy-hook-lib.sh
IMG/cpio/ventoy/hook/ventoy-hook-lib.sh
+11
-0
No files found.
IMG/cpio/ventoy/hook/kaos/ventoy-disk.sh
View file @
aecc579f
...
...
@@ -49,9 +49,10 @@ ventoy_os_install_dmsetup_by_fuse() {
insmod
$KoName
fi
umount
$VTOY_PATH
/mnt/squashfs
umount
$VTOY_PATH
/mnt/iso
umount
$VTOY_PATH
/mnt/fuse
ventoy_check_umount
$VTOY_PATH
/mnt/squashfs
ventoy_check_umount
$VTOY_PATH
/mnt/iso
ventoy_check_umount
$VTOY_PATH
/mnt/fuse
vtlog
"umount done"
}
...
...
IMG/cpio/ventoy/hook/ventoy-hook-lib.sh
View file @
aecc579f
...
...
@@ -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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment