Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52b4cea73e |
No files matched your search
@@ -10,12 +10,12 @@ image.
|
|||||||
`/usr`.
|
`/usr`.
|
||||||
- **Encrypted with a TPM:** everything that isn't read-only, such as `/etc`
|
- **Encrypted with a TPM:** everything that isn't read-only, such as `/etc`
|
||||||
and `/var`, is encrypted. The TPM unlocks it only for correctly signed UKIs.
|
and `/var`, is encrypted. The TPM unlocks it only for correctly signed UKIs.
|
||||||
There is no recovery key: if the TPM is lost, reinstall.
|
|
||||||
- **Jobs in containers:** each job runs in its own privileged container on
|
- **Jobs in containers:** each job runs in its own privileged container on
|
||||||
root's podman. Jobs with `runs-on: linux` run in our job image: Fedora with
|
root's podman. Jobs with `runs-on: linux` run in our job image: Fedora with
|
||||||
git, Node.js 26 and dnf, built with the OS and shipped in `/usr`. Privileged
|
git, Node.js 26, podman and dnf, built with the OS and shipped in `/usr`.
|
||||||
jobs can build OS images, but can also take over the VM, so only use it for
|
Privileged jobs can build OS and container images, but can also take over
|
||||||
repositories you trust. Container storage is wiped at every boot.
|
the VM, so only use it for repositories you trust. Container storage is
|
||||||
|
wiped at every boot.
|
||||||
- **Self-updating:** the image rebuilds weekly. The VM lets running jobs finish
|
- **Self-updating:** the image rebuilds weekly. The VM lets running jobs finish
|
||||||
before it reboots into an update, and a bad update rolls back by itself.
|
before it reboots into an update, and a bad update rolls back by itself.
|
||||||
|
|
||||||
@@ -23,16 +23,17 @@ image.
|
|||||||
|
|
||||||
Download [the disk image](https://git.plabble.org/api/packages/Job79/generic/runneros/latest/runneros.qcow2),
|
Download [the disk image](https://git.plabble.org/api/packages/Job79/generic/runneros/latest/runneros.qcow2),
|
||||||
resize it to the disk size you want and boot it with UEFI and a TPM. At first
|
resize it to the disk size you want and boot it with UEFI and a TPM. At first
|
||||||
boot, the screen asks for a timezone and a root password. Then it asks how many jobs to run at once, the Gitea URL and a
|
boot, the screen offers a recovery key for the encrypted disk and asks for a
|
||||||
|
root password. Then it asks how many jobs to run at once, the Gitea URL and a
|
||||||
registration token from Gitea's runner settings. It registers under the
|
registration token from Gitea's runner settings. It registers under the
|
||||||
hostname, `runneros-` and four hex digits, and starts.
|
hostname, `runneros-` and four hex digits, and starts.
|
||||||
|
|
||||||
To change the number of parallel jobs later, run `systemctl edit
|
To change the number of parallel jobs later, run `systemctl edit
|
||||||
gitea-runner` and set `Environment=CAPACITY=<jobs>` under `[Service]`.
|
gitea-runner` and set `Environment=CAPACITY=<jobs>` under `[Service]`.
|
||||||
|
|
||||||
To start over, run `systemctl start factory-reset.target` as root. It reboots,
|
To start over, run `systemctl start factory-reset.target` as root. It reboots
|
||||||
the firmware asks to clear the TPM (press F12), and it wipes the root partition
|
and wipes the root partition (`/etc` and `/var`), and the VM sets itself up as
|
||||||
(`/etc` and `/var`). The VM then sets itself up as at first boot.
|
at first boot.
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
|
|||||||
+3
-5
@@ -29,6 +29,8 @@ ManifestFormat=json
|
|||||||
|
|
||||||
[Content]
|
[Content]
|
||||||
# Content sets what goes into the image:
|
# Content sets what goes into the image:
|
||||||
|
# - Hostname is runneros- and four hex digits of the machine ID. It is also
|
||||||
|
# the name the runner registers with.
|
||||||
# - WithDocs leaves out man pages. The image has no man to read them.
|
# - WithDocs leaves out man pages. The image has no man to read them.
|
||||||
# - Packages lists the packages installed into the image.
|
# - Packages lists the packages installed into the image.
|
||||||
# - ExtraTrees copies the job image (mkosi.images/job/) into /usr.
|
# - ExtraTrees copies the job image (mkosi.images/job/) into /usr.
|
||||||
@@ -37,10 +39,6 @@ ManifestFormat=json
|
|||||||
# - KernelCommandLine:
|
# - KernelCommandLine:
|
||||||
# - rw has the initrd mount the root filesystem writable. It finds it by its
|
# - rw has the initrd mount the root filesystem writable. It finds it by its
|
||||||
# partition type (mkosi.extra/usr/lib/repart.d/50-root.conf).
|
# partition type (mkosi.extra/usr/lib/repart.d/50-root.conf).
|
||||||
# - The hostname is runneros- and four hex digits of the machine ID, also
|
|
||||||
# the name the runner registers with. Unlike /etc/hostname, which only
|
|
||||||
# exists once tmpfiles links it, the command line has it from the first
|
|
||||||
# boot on.
|
|
||||||
# - The image policy only accepts an encrypted root filesystem (or none, at
|
# - The image policy only accepts an encrypted root filesystem (or none, at
|
||||||
# first boot) and a verity-checked /usr. Otherwise someone with the disk
|
# first boot) and a verity-checked /usr. Otherwise someone with the disk
|
||||||
# could swap in a plain root filesystem. Our UKI would boot it, and their
|
# could swap in a plain root filesystem. Our UKI would boot it, and their
|
||||||
@@ -59,6 +57,7 @@ ManifestFormat=json
|
|||||||
# - RemoveFiles drops System.map, which is only for debugging the kernel, and
|
# - RemoveFiles drops System.map, which is only for debugging the kernel, and
|
||||||
# the udev hwdb, which holds hardware names and quirks a VM doesn't need.
|
# the udev hwdb, which holds hardware names and quirks a VM doesn't need.
|
||||||
# Without hwdb.d, systemd-hwdb-update can't build it again at boot.
|
# Without hwdb.d, systemd-hwdb-update can't build it again at boot.
|
||||||
|
Hostname=runneros-????
|
||||||
WithDocs=no
|
WithDocs=no
|
||||||
Packages=
|
Packages=
|
||||||
kernel-core # Unlike kernel, this has no extra drivers.
|
kernel-core # Unlike kernel, this has no extra drivers.
|
||||||
@@ -82,7 +81,6 @@ UnifiedKernelImageFormat=%i_%v
|
|||||||
KernelCommandLine=
|
KernelCommandLine=
|
||||||
quiet
|
quiet
|
||||||
rw
|
rw
|
||||||
systemd.hostname=runneros-????
|
|
||||||
systemd.image_policy=root=encrypted+absent:usr=verity:esp=unprotected
|
systemd.image_policy=root=encrypted+absent:usr=verity:esp=unprotected
|
||||||
systemd.setenv=SYSTEMD_REPART_MKFS_OPTIONS_BTRFS=--metadata=single
|
systemd.setenv=SYSTEMD_REPART_MKFS_OPTIONS_BTRFS=--metadata=single
|
||||||
SYSTEMD_DEFAULT_MOUNT_RATE_LIMIT_BURST=50
|
SYSTEMD_DEFAULT_MOUNT_RATE_LIMIT_BURST=50
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ container:
|
|||||||
privileged: true
|
privileged: true
|
||||||
# docker_host "-" keeps podman's socket out of the jobs.
|
# docker_host "-" keeps podman's socket out of the jobs.
|
||||||
docker_host: "-"
|
docker_host: "-"
|
||||||
# options gives each job a /var/tmp volume. On the container's overlayfs,
|
# options gives each job volumes for /var/tmp and /var/lib/containers. On
|
||||||
# mkosi loses the xattrs of the files it copies, such as file capabilities.
|
# the container's overlayfs, mkosi loses the xattrs of the files it copies,
|
||||||
options: --volume /var/tmp
|
# such as file capabilities, and podman can't keep its storage.
|
||||||
|
options: --volume /var/tmp --volume /var/lib/containers
|
||||||
@@ -15,6 +15,7 @@ L /etc/gitea-runner
|
|||||||
L /etc/authselect
|
L /etc/authselect
|
||||||
L /etc/security
|
L /etc/security
|
||||||
L /etc/environment
|
L /etc/environment
|
||||||
|
L /etc/login.defs
|
||||||
L /etc/shells
|
L /etc/shells
|
||||||
|
|
||||||
# pki and ssl hold the CA certificates, and crypto-policies the TLS settings.
|
# pki and ssl hold the CA certificates, and crypto-policies the TLS settings.
|
||||||
@@ -26,3 +27,4 @@ L /etc/profile
|
|||||||
L /etc/profile.d
|
L /etc/profile.d
|
||||||
L /etc/protocols
|
L /etc/protocols
|
||||||
L /etc/services
|
L /etc/services
|
||||||
|
L /etc/hostname
|
||||||
@@ -15,6 +15,7 @@ Packages=
|
|||||||
fedora-repos # dnf needs to know the repositories.
|
fedora-repos # dnf needs to know the repositories.
|
||||||
git-core # Checkouts are done with git.
|
git-core # Checkouts are done with git.
|
||||||
nodejs26 # JavaScript actions run on node.
|
nodejs26 # JavaScript actions run on node.
|
||||||
|
podman # Jobs build and run containers.
|
||||||
curl
|
curl
|
||||||
tar # actions/cache and artifacts use these.
|
tar # actions/cache and artifacts use these.
|
||||||
gzip
|
gzip
|
||||||
|
|||||||
Reference in new issue
Block a user