Unterstütze handelsübliche 16-GB-USB-Sticks
Some checks failed
Tests / test (push) Has been cancelled

This commit is contained in:
2026-10-15 08:27:43 +02:00
parent 81f06cf6b4
commit 0c2fde5929

View File

@@ -21,7 +21,7 @@ if lsblk -nr -o MOUNTPOINT "$DEVICE" | grep -q '[^[:space:]]'; then
echo 'USB contains mounted partitions; unmount them before continuing.' >&2; lsblk "$DEVICE"; exit 2 echo 'USB contains mounted partitions; unmount them before continuing.' >&2; lsblk "$DEVICE"; exit 2
fi fi
size_bytes=$(blockdev --getsize64 "$DEVICE") size_bytes=$(blockdev --getsize64 "$DEVICE")
((size_bytes >= 16*1024*1024*1024)) || { echo 'USB must be at least 16 GiB.' >&2; exit 2; } ((size_bytes >= 12*1024*1024*1024)) || { echo 'USB must be at least 12 GiB.' >&2; exit 2; }
iso_bytes=$(stat -c %s "$ISO") iso_bytes=$(stat -c %s "$ISO")
((iso_bytes < 4294967295)) || { echo 'ISO exceeds the FAT32 single-file limit.' >&2; exit 2; } ((iso_bytes < 4294967295)) || { echo 'ISO exceeds the FAT32 single-file limit.' >&2; exit 2; }
model=$(lsblk -dn -o MODEL "$DEVICE" | xargs) model=$(lsblk -dn -o MODEL "$DEVICE" | xargs)