sdutil cleanup start_part_dos (), write_iso.sh only work with block devs
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m50s

This commit is contained in:
2026-03-21 16:03:51 +01:00
parent cc291568f5
commit eccc022091
2 changed files with 22 additions and 27 deletions

View File

@@ -3,6 +3,17 @@
# Requires sudo
# USAGE: ./aux/write_iso.sh /dev/sda
TARGET="$1"
if [ -z "$TARGET" ]; then
exit 1
fi
if [ ! -b "$TARGET" ]; then
echo "Not a block device"
exit 1
fi
set -x
dd if=./mop3.iso of="$1" bs=4M status=progress oflag=direct conv=notrunc,sync && sync
dd if=./mop3.iso of="$TARGET" bs=4M status=progress oflag=direct conv=notrunc,sync && sync