Fix the warning prompt for Ventoy2Disk.sh (#2593)

pull/2442/merge
longpanda 7 months ago
parent 7f63a1c327
commit 3ff1867a2a

@ -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

Loading…
Cancel
Save