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
e15a1c5e
Commit
e15a1c5e
authored
Oct 22, 2021
by
longpanda
Browse files
Optimization for pyabr
parent
f5843f57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
IMG/cpio/ventoy/hook/debian/pyabr-disk.sh
IMG/cpio/ventoy/hook/debian/pyabr-disk.sh
+23
-2
No files found.
IMG/cpio/ventoy/hook/debian/pyabr-disk.sh
View file @
e15a1c5e
...
@@ -47,8 +47,29 @@ ventoy_os_install_dmsetup_by_fuse() {
...
@@ -47,8 +47,29 @@ ventoy_os_install_dmsetup_by_fuse() {
umount
$VTOY_PATH
/mnt/fuse
umount
$VTOY_PATH
/mnt/fuse
}
}
while
[
-n
"Y"
]
;
do
wait_for_usb_disk_ready
vtdiskname
=
$(
get_ventoy_disk_name
)
if
[
"
$vtdiskname
"
=
"unknown"
]
;
then
vtlog
"ventoy disk not found"
if
[
-r
/proc/sys/kernel/hotplug
]
;
then
echo
/sbin/mdev
>
/proc/sys/kernel/hotplug
fi
mdev
-s
sleep
1
else
if
check_usb_disk_ready
"
$vtdiskname
"
;
then
vtlog
"check_usb_disk_ready
$vtdiskname
ok"
break
else
vtlog
"check_usb_disk_ready
$vtdiskname
error"
if
[
-r
/proc/sys/kernel/hotplug
]
;
then
echo
/sbin/mdev
>
/proc/sys/kernel/hotplug
fi
mdev
-s
sleep
1
fi
fi
done
vtdiskname
=
$(
get_ventoy_disk_name
)
vtdiskname
=
$(
get_ventoy_disk_name
)
if
[
"
$vtdiskname
"
=
"unknown"
]
;
then
if
[
"
$vtdiskname
"
=
"unknown"
]
;
then
...
...
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