From 40895a09f6fc29bee24867c480b1f84a29d87e2d Mon Sep 17 00:00:00 2001 From: Tiago Augusto Pimenta Date: Fri, 24 Jul 2026 10:26:25 +0000 Subject: [PATCH] Fix fdisk detection on BusyBox systems (#3614) On BusyBox, fdisk -v exists but returns a non-zero exit code, causing the script to incorrectly conclude fdisk is not available. Use POSIX command -v instead to reliably check for fdisk. --- INSTALL/tool/VentoyWorker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/INSTALL/tool/VentoyWorker.sh b/INSTALL/tool/VentoyWorker.sh index 9d6d0031..4e86b8e6 100644 --- a/INSTALL/tool/VentoyWorker.sh +++ b/INSTALL/tool/VentoyWorker.sh @@ -186,7 +186,7 @@ if [ "$MODE" = "install" -a -z "$NONDESTRUCTIVE" ]; then else if parted -v > /dev/null 2>&1; then PARTTOOL='parted' - elif fdisk -v >/dev/null 2>&1; then + elif command -v fdisk > /dev/null 2>&1; then PARTTOOL='fdisk' else vterr "Both parted and fdisk are not found in the system, Ventoy can't create new partitions."