From c1c27cd30c46b3f6674b44008e74f5fa706fd286 Mon Sep 17 00:00:00 2001 From: longpanda Date: Tue, 14 Apr 2026 11:03:02 +0800 Subject: [PATCH] Bugfix for ubuntu24.04.4 install failure. (#3567) --- IMG/cpio/ventoy/hook/ventoy-hook-lib.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/IMG/cpio/ventoy/hook/ventoy-hook-lib.sh b/IMG/cpio/ventoy/hook/ventoy-hook-lib.sh index c0a5737a..36f47050 100644 --- a/IMG/cpio/ventoy/hook/ventoy-hook-lib.sh +++ b/IMG/cpio/ventoy/hook/ventoy-hook-lib.sh @@ -163,15 +163,16 @@ ventoy_get_vblade_bin() { } 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 if [ -e "$vt_path/$1" ]; then echo "$vt_path/$1"; return fi done - if $BUSYBOX_PATH/which "$1" > /dev/null; then - $BUSYBOX_PATH/which "$1"; return - fi - + echo "" }