Commit Graph

2 Commits (main)

Author SHA1 Message Date
Amir Alexander Abdelbaki 0e04a7cada fix(archiso): use oflag=direct so USB write progress isn't misleading
Without oflag=direct, dd copies the ISO into the page cache at high speed, the
status=progress counter races to ~100%, then appears to hang at the end while
the slow USB drains and conv=fsync flushes — looking frozen when it is still
writing. write-usb.sh now writes with oflag=direct (honest device-level
progress) and falls back to a cached write if the bridge rejects O_DIRECT;
build.sh's dd hint and explanation are updated to match.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 19:22:23 +02:00
Amir Alexander Abdelbaki 3b0bf17210 fix(archiso): document/automate block-level USB write to fix ldlinux.c32 error
"failed to load ldlinux.c32" when booting from USB is caused by writing the
isohybrid ISO at file level (drag-and-drop, Rufus "ISO" mode, UNetbootin), which
destroys the MBR/isolinux layout. The ISO build itself is correct — archiso's
bios.syslinux mode installs isolinux.bin + isohdpfx.bin + the c32 modules and
applies the isohybrid MBR, and the profile's bootmodes match upstream releng.

Add archiso/write-usb.sh: a safe block-level (dd) writer that lists removable
disks, refuses partitions and the system/root disk, requires an all-caps YES,
unmounts the target, then writes with conv=fsync. build.sh's completion output
now points at it and warns that file-level copies cause exactly this error.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 19:08:33 +02:00