`dgit` is an alias for `git` that sets correct git dir and work tree.
- FreeBSD first
- repeatable
- tested
Bootstrap:
fetch -q -o - https://raw.githubusercontent.com/patmaddox/system0/main/bootstrap.mk | make -f -
Check out files locally. WARNING: This force checks out the branch, and will overwrite any local files that are also tracked by git.
git --git-dir=system0.git --work-tree=. checkout -f main
Build environment:
make
Test setup:
make test
Add a make target to quickly bootstrap a jail.
I’m running this stuff in the cloud, and I don’t want to pay for time that I’m not using.
A simple script could run mtree on the home dir every hour. If nothing has changed for N hours, shut down the instance.
I think `freebsd-src/releases` builds them with UFS.
I’ve written scripts to configure disks and use the cloud console commands. Those work, but it might be possible to hook directly into FreeBSD build machinery. I don’t even have to use Packer to make the base images. I can use Packer to configure the base image - or potentially even run this build script.