Product Diaryby Remnant Security

mac-bin Restore Kit Survives a Fresh macOS 27.2 Test

Product Diary1 min readApps

Running my rebuild-a-Mac scripts inside a blank Mac 27.2 virtual machine caught two silent failures that my lived-in Macs had masked for months.

I can rebuild a blank Mac from my backup repository with a lot fewer surprises now, because I finally tested the kit on a machine that didn't already have my setup baked in. Spinning up a fresh macOS 27.2 virtual machine exposed bugs that my daily Macs had hidden for months, including two that let a restore report success while installing nothing at all. I've parked that test VM on the file server with recovery notes so it's easy to rerun.

The package list tripped first. Homebrew 7 refuses software from untrusted taps, so two tools aborted on the clean VM even though they'd installed fine on older machines that predated the policy. I marked those sources as trusted in the manifests and pruned three formulas Homebrew dropped. Worse, the Mac mini's package list had been saved under its old hostname, meaning a restore would've silently skipped 79 packages until I regenerated it.

App Store installs caused the second stall. Without an Apple ID signed in, mas hung on Xcode for an hour instead of failing fast, so the restore script now skips store apps and prints them as a manual follow-up. On a bare system, the dotfile bootstrap also called a stub Python binary that popped the Command Line Tools dialog mid-script, which I removed.

Along the way I cleaned up an update script that wrote malformed success markers, a tool check flagging ffmpeg, node, and llvm as missing, and a check mistaking Hermes's launcher shim for a full install. Separately, a login-listener on the mini had crashed 8,576 times because it parsed an error message as an IP address; it now validates a real Tailscale address and backs off for 60 seconds. A second VM pass ran the shared list clean and finished the mini's list aside from full Xcode, though a real bare-metal restore is still untested (see today's Daily Story and my earlier mac-bin setup notes).

Keep reading