Documentation ¶ Rendered for darwin/amd64 Index ¶ func Patch(ctx context.Context, disk string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Patch ¶ func Patch(ctx context.Context, disk string) error Patch prepares a macOS guest disk for first boot. It writes the LaunchDaemon plist, init script, and setup markers via a noowners mount, then fixes file ownership by patching APFS inode records directly on the raw disk image. No sudo required. Types ¶ This section is empty. Source Files ¶ View all Source files macos_darwin.go Click to show internal directories. Click to hide internal directories.