Skip to content

Fix fdisk detection on BusyBox systems - #3614

Merged
ventoy merged 1 commit into
ventoy:masterfrom
tiagoapimenta:fix-fdisk
Jul 24, 2026
Merged

Fix fdisk detection on BusyBox systems#3614
ventoy merged 1 commit into
ventoy:masterfrom
tiagoapimenta:fix-fdisk

Conversation

@tiagoapimenta

Copy link
Copy Markdown
Contributor

On BusyBox systems, fdisk -v exists but returns a non-zero exit code, causing the script in INSTALL/tool/VentoyWorker.sh to incorrectly conclude fdisk is not available. This prevents Ventoy from using fdisk as a partition tool on those systems.

Changed the detection from fdisk -v >/dev/null 2>&1 to command -v fdisk > /dev/null 2>&1, which is POSIX-compliant and works reliably regardless of the command's flag behavior.

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.
@ventoy
ventoy merged commit 40895a0 into ventoy:master Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants