flash-mac.sh: 2-partition parity with Linux flash-helper
Upgrades the macOS flasher from single-partition kernel-direct mode to
the 2-partition layout flash-helper-runner.sh produces on Linux:
1. ACBOOT (FAT32, type "Microsoft Basic Data")
/EFI/BOOT/BOOTX64.EFI = full kernel
/initramfs.cpio.gz, /config.json
PC firmware fallback path.
2. ACEFI (FAT32, type "EFI System Partition")
/EFI/BOOT/BOOTX64.EFI = splash.efi (chains to LOADER.EFI)
/EFI/BOOT/LOADER.EFI = systemd-boot
/EFI/BOOT/KERNEL.EFI = kernel
/loader/entries/ac-native.conf with explicit cmdline
Universal — works on any UEFI that respects ESP type GUID.
Built with sgdisk (gptfdisk) for precise type GUIDs (0700 + ef00) +
newfs_msdos for FAT32 + mount_msdos for staging. No Docker, no /sys/block.
sha256 round-trip verifies every kernel + initramfs copy after writing.
Skipped (follow-up): AC-MAC HFS+ partition for Intel Mac compatibility.
The two FAT32 partitions cover ThinkPads, generic PCs, Apple Silicon
Macs that boot Linux via virt, and most modern UEFI firmware.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>