Files
runneros/mkosi.conf
T
Job79andClaude Opus 5.5 dfa5d69b44
os / os (push) Successful in 3m51s
No repo secrets: unsigned image, updates as release assets, job image built by mkosi
The workflow's own token can't write packages and repo secrets can't be
set, so: build unsigned, publish the sysupdate files as assets of the
"latest" release, and build the job image with mkosi and ship it in /usr
instead of pushing it to a registry. Partition UUIDs are now part of the
update file names, so updated /usr partitions keep the UUIDs usrhash=
expects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 23:21:42 +01:00

68 lines
1.9 KiB
Plaintext

# git-runner: a Fedora VM image that runs the Gitea Actions runner, built with mkosi.
# mkosi.extra/ is copied to /, mkosi.repart/ defines the disk, mkosi.prepare adds the runner,
# mkosi.images/job/ is the job image.
[Config]
Dependencies=job
[Distribution]
Distribution=fedora
Release=45
[Output]
Format=disk
ImageId=git-runner
OutputDirectory=mkosi.output
# The UKI and /usr partitions are published as updates (systemd-sysupdate).
SplitArtifacts=uki,partitions
[Content]
Bootable=yes
ExtraTrees=%O/job:/usr/lib/gitea-runner/job-image
Bootloader=systemd-boot
# - kernel-core no drivers or firmware beyond what VMs need
# - systemd-container systemd-pull, which systemd-sysupdate downloads with
# - systemd-boot-unsigned the bootloader
# - util-linux, shadow-utils console login and the first-boot setup
# - podman, git-core the runner's jobs; git fetches actions
# - nftables-services the firewall
# - zram-generator-defaults compressed swap in RAM
Packages=
kernel-core
systemd
dbus-broker
systemd-udev
systemd-networkd
systemd-resolved
systemd-container
systemd-boot-unsigned
util-linux
shadow-utils
podman
git-core
nftables-services
zram-generator-defaults
WithDocs=no
Locale=C.UTF-8
# The UKI's file name in the ESP, as systemd-sysupdate names the ones it installs.
UnifiedKernelImageFormat=%i_%v
KernelCommandLine=
rw
console=tty0
console=ttyS0,115200n8
quiet
systemd.firstboot=no
slab_nomerge
init_on_alloc=1
randomize_kstack_offset=on
page_alloc.shuffle=1
# Kernel modules in the initrd: only what finds and mounts the disks of a VM.
KernelInitrdModules=
virtio_blk
virtio_scsi
sd_mod
nvme
dm-verity
erofs
ext4