# 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 # A writable root, the console on screen and serial port, no systemd-firstboot questions # (gitea-runner-setup asks its own), and KSPP hardening (the last four). 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