From 3ff1867a2a25b069f0e5bf2b566bd84d927fbc5f Mon Sep 17 00:00:00 2001 From: longpanda Date: Fri, 6 Oct 2023 22:05:39 +0800 Subject: [PATCH] Fix the warning prompt for Ventoy2Disk.sh (#2593) --- 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 4684b710..e0800d98 100644 --- a/INSTALL/tool/VentoyWorker.sh +++ b/INSTALL/tool/VentoyWorker.sh @@ -195,7 +195,7 @@ if [ "$MODE" = "install" -a -z "$NONDESTRUCTIVE" ]; then fi if [ "$PARTTOOL" = "parted" ]; then - if parted $DISK p | grep -i -q 'sector size.*4096.*4096'; then + if parted -s $DISK p 2>&1 | grep -i -q 'sector size.*4096.*4096'; then vterr "Currently Ventoy does not support 4K native device." exit 1 fi