mirror of
https://github.com/ventoy/Ventoy.git
synced 2026-04-19 20:26:17 +00:00
Bugfix for ubuntu24.04.4 install failure. (#3567)
This commit is contained in:
@@ -163,14 +163,15 @@ ventoy_get_vblade_bin() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ventoy_find_bin_path() {
|
ventoy_find_bin_path() {
|
||||||
|
#must use built-in dmsetup, so first try ventoy path. Otherwise ubuntu installer unhappy. #3567
|
||||||
|
if $BUSYBOX_PATH/which "$1" > /dev/null; then
|
||||||
|
$BUSYBOX_PATH/which "$1"; return
|
||||||
|
fi
|
||||||
for vt_path in '/bin' '/sbin' '/usr/bin' '/usr/sbin' '/usr/local/bin' '/usr/local/sbin' '/root/bin'; do
|
for vt_path in '/bin' '/sbin' '/usr/bin' '/usr/sbin' '/usr/local/bin' '/usr/local/sbin' '/root/bin'; do
|
||||||
if [ -e "$vt_path/$1" ]; then
|
if [ -e "$vt_path/$1" ]; then
|
||||||
echo "$vt_path/$1"; return
|
echo "$vt_path/$1"; return
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if $BUSYBOX_PATH/which "$1" > /dev/null; then
|
|
||||||
$BUSYBOX_PATH/which "$1"; return
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user