mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-05-30 06:45:40 -04:00
Optimization for slax-9.11.0 (#725)
This commit is contained in:
parent
dccefc5277
commit
61d4248d51
2 changed files with 13 additions and 3 deletions
|
@ -60,8 +60,6 @@ ventoy_os_install_dmsetup() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
wait_for_usb_disk_ready
|
|
||||||
|
|
||||||
vtdiskname=$(get_ventoy_disk_name)
|
vtdiskname=$(get_ventoy_disk_name)
|
||||||
if [ "$vtdiskname" = "unknown" ]; then
|
if [ "$vtdiskname" = "unknown" ]; then
|
||||||
vtlog "ventoy disk not found"
|
vtlog "ventoy disk not found"
|
||||||
|
@ -69,6 +67,14 @@ if [ "$vtdiskname" = "unknown" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if check_usb_disk_ready "$vtdiskname"; then
|
||||||
|
vtlog "check_usb_disk_ready ok"
|
||||||
|
else
|
||||||
|
vtlog "check_usb_disk_ready error"
|
||||||
|
PATH=$VTPATH_OLD
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
ventoy_os_install_dmsetup $vtdiskname
|
ventoy_os_install_dmsetup $vtdiskname
|
||||||
|
|
||||||
ventoy_udev_disk_common_hook "${vtdiskname#/dev/}2" "noreplace"
|
ventoy_udev_disk_common_hook "${vtdiskname#/dev/}2" "noreplace"
|
||||||
|
|
|
@ -17,4 +17,8 @@
|
||||||
#
|
#
|
||||||
#************************************************************************************
|
#************************************************************************************
|
||||||
|
|
||||||
$SED "/find_data/i\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/debian/slax-disk.sh" -i /init
|
if [ -f /lib/livekitlib ] && $GREP -q 'debug_log.*find_data_try' /lib/livekitlib; then
|
||||||
|
$SED "/debug_log.*find_data_try/a\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/debian/slax-disk.sh" -i /lib/livekitlib
|
||||||
|
else
|
||||||
|
$SED "/find_data/i\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/debian/slax-disk.sh" -i /init
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue