Minimalist installation of OpenBSD on the Apple M2 using QEMU
- Apple M2 running macOS Sonoma 14.4.1
- QEMU version 8.2.1
- OpenBSD 7.5 arm64
Minimalist installation of OpenBSD on the Apple M2 using QEMU
Not necessarily meant to be followed step by step, although it is recommended. Some steps are valid during all levels, others give way to better alternatives further on.
# Run this script using `ruby package.rb` with an executable named `app` | |
# in a `build/` directory. | |
# Build an app bundle for macOS | |
def build_macos_package | |
require 'fileutils' | |
info_plist = %( | |
<?xml version="1.0" encoding="UTF-8"?> |
/* ivan(a.t)mysqlab.net */ | |
package main | |
import ( | |
"syscall" | |
"os" | |
"log" | |
) | |
func daemon(nochdir, noclose int) int { |