style: apply STYLE.md to all files

Give every file a header (title, empty line, explanation), wrap comments
at 80 columns and keep them to the why. Only comments change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-16 20:14:06 +01:00
1 parent efb282bf7d
commit a1fc65ed21
32 files changed
+183 -105

No files matched your search

+4 -4
View File
@@ -1,8 +1,8 @@
# agent OS image # OS image
# #
# Builds the OS image and publishes it as version "latest". VMs fetch the build # Builds the OS image and publishes it as version "latest". VMs fetch the
# images as updates (mkosi.extra/usr/lib/sysupdate.d). Runs on every push, # built images as updates (mkosi.extra/usr/lib/sysupdate.d). Runs on every
# weekly for package updates, and by hand for critical CVE's. # push, weekly for package updates, and by hand for critical CVEs.
# #
# Values used below: # Values used below:
# - PKG upload location, <server>/api/packages/<owner>/generic/ # - PKG upload location, <server>/api/packages/<owner>/generic/
+3
View File
@@ -1,2 +1,5 @@
# Ignored files
#
# Build output, and the Secure Boot private key (mkosi.conf, [Validation]).
mkosi.output/ mkosi.output/
mkosi.key mkosi.key
+3 -16
View File
@@ -1,9 +1,5 @@
# Style guide # Style guide
For everyone who changes this repository, people and AI agents alike.
## General
- Keep it simple. Prefer fewer files, fewer lines and the defaults. Delete what isn't needed. - Keep it simple. Prefer fewer files, fewer lines and the defaults. Delete what isn't needed.
- Each fact lives in one place. Elsewhere, refer to it by path instead of repeating it. - Each fact lives in one place. Elsewhere, refer to it by path instead of repeating it.
- Write plain English in short sentences. - Write plain English in short sentences.
@@ -16,7 +12,8 @@ Every file that allows comments starts with a header. It goes after the shebang,
#!/bin/sh #!/bin/sh
# Image version # Image version
# #
# The build time (UTC), so every build is newer than the last. # Prints the build time in UTC (YYYYMMDDhhmm). Every build gets a higher version than the one
# before, which is how systemd-sysupdate tells that an update is newer.
``` ```
- Line 1 is a title: a few words, in sentence case, with no full stop. - Line 1 is a title: a few words, in sentence case, with no full stop.
@@ -30,14 +27,4 @@ them or in the README.
- Explain why, not what. Leave out comments that only repeat the code. - Explain why, not what. Leave out comments that only repeat the code.
- Put a comment right above the line or block it is about. - Put a comment right above the line or block it is about.
- Wrap comments at 100 columns. - Wrap comments at 80 columns.
## Shell
- Use `#!/bin/sh` with `set -eu`. Switch to `#!/bin/bash` with `set -euo pipefail` only when the
script needs bash.
- Quote variables: `"$var"`.
## Config files
- Put one value per line in lists, with a comment explaining the less obvious entries.
+36 -27
View File
@@ -1,7 +1,10 @@
# agent: a Fedora VM image that runs Claude Code in the background, built with mkosi. # Agent image
# mkosi.extra/ is copied to /, mkosi.repart/ defines the disk, mkosi.sandbox/ adds the Claude Code repo. #
# The root filesystem, /etc included, is read-only and replaced whole by updates; all state lives # A Fedora VM image that runs Claude Code in the background. mkosi.extra/ is
# on /var. Claude can't change the OS: it runs its tools in containers. # copied to /, mkosi.repart/ defines the disk and mkosi.sandbox/ adds the
# Claude Code package repository. The root filesystem, /etc included, is
# read-only and replaced whole by updates. All state lives on /var. Claude
# can't change the OS, so it runs its tools in containers.
[Distribution] [Distribution]
Distribution=fedora Distribution=fedora
@@ -18,17 +21,16 @@ SplitArtifacts=uki,partitions
Bootable=yes Bootable=yes
Bootloader=systemd-boot Bootloader=systemd-boot
# - kernel-core no drivers or firmware beyond what VMs need # - kernel-core no drivers or firmware beyond what VMs need
# - systemd-container, gnupg2 systemd-pull, which systemd-sysupdate downloads with, and gpg, # - systemd-container systemd-pull, which systemd-sysupdate downloads by
# which it checks their signature with # - gnupg2 checks the signature of updates
# - systemd-boot-unsigned the bootloader
# - util-linux, shadow-utils console login, setup, newuidmap for rootless podman # - util-linux, shadow-utils console login, setup, newuidmap for rootless podman
# - systemd-pam login sessions (pam_systemd): Claude's user manager and its # - systemd-pam login sessions: Claude's user manager and its
# D-Bus, which rootless podman needs # D-Bus, which rootless podman needs
# - openssh-server ssh login for the user (keys only) # - openssh-server ssh login for the user (keys only)
# - zram-generator-defaults compressed swap in RAM # - zram-generator-defaults compressed swap in RAM
# - podman, podman-docker containers, for all of Claude's toolchains (also as docker) # - podman, podman-docker containers for Claude's toolchains (also as docker)
# - claude-code Claude Code (mkosi.sandbox/etc/yum.repos.d) # - claude-code from mkosi.sandbox/etc/yum.repos.d
# - git-core, openssh-clients Claude Code uses git; it pushes over ssh # - git-core, openssh-clients Claude Code uses git and pushes over ssh
# - the rest basic command-line tools Claude uses on the host # - the rest basic command-line tools Claude uses on the host
Packages= Packages=
kernel-core kernel-core
@@ -61,13 +63,17 @@ Packages=
iproute iproute
WithDocs=no WithDocs=no
Locale=C.UTF-8 Locale=C.UTF-8
# The UKI's file name in the ESP, as systemd-sysupdate names the ones it installs. # Name UKIs the way systemd-sysupdate names the ones it installs.
UnifiedKernelImageFormat=%i_%v UnifiedKernelImageFormat=%i_%v
# The console on screen and serial port, the machine ID from the VM's firmware # - console= show the console on screen and on the serial port
# (mkosi.extra/etc/machine-id is empty, so no boot counts as the first), no systemd-firstboot # - systemd.machine_id= take the machine ID from the VM's firmware;
# questions (agent-setup asks its own), freeing memory unused for an hour (damon_reclaim, in µs; the # mkosi.extra/etc/machine-id is empty, so no boot
# watermarks make it run whatever memory is free), so the host can take it back (virtio-balloon # counts as the first
# free page reporting). # - systemd.firstboot=no agent-setup asks its own questions
# - damon_reclaim.* free memory unused for an hour (min_age is in µs),
# so the host can take it back through virtio-balloon
# free page reporting. The watermarks make it run
# however much memory is free.
KernelCommandLine= KernelCommandLine=
console=tty0 console=tty0
console=ttyS0,115200n8 console=ttyS0,115200n8
@@ -79,7 +85,7 @@ KernelCommandLine=
damon_reclaim.wmarks_high=1000 damon_reclaim.wmarks_high=1000
damon_reclaim.wmarks_mid=999 damon_reclaim.wmarks_mid=999
damon_reclaim.wmarks_low=0 damon_reclaim.wmarks_low=0
# Kernel modules in the initrd: only what finds and mounts the disks of a VM. # The initrd only needs to find and mount the disks of a VM.
KernelInitrdModules= KernelInitrdModules=
virtio_blk virtio_blk
virtio_scsi virtio_scsi
@@ -88,9 +94,10 @@ KernelInitrdModules=
dm-verity dm-verity
erofs erofs
ext4 ext4
# Kernel modules in the image: all but the hardware drivers, then the drivers of a VM (disks, # All modules but the hardware drivers, then the drivers a VM needs (disks,
# network, screen) and of rootless podman's networks (pasta). The last matching line wins. # network, screen) and those of rootless podman's networks (pasta). The last
# Keyboard, USB and a basic screen are built into the kernel. # matching line wins. Keyboard, USB and a basic screen are built into the
# kernel.
KernelModules= KernelModules=
/* /*
-/drivers/* -/drivers/*
@@ -108,8 +115,10 @@ KernelModules=
tun tun
# - System.map only for debugging the kernel # - System.map only for debugging the kernel
# - udev hwdb hardware names and quirks, nothing a VM needs # - udev hwdb hardware names and quirks, nothing a VM needs
# - homed, userdbd, nsresourced unused services # - homed, userdbd, unused services
# - sshd-keygen sshd uses one host key, kept on /var (sshd_config.d) # nsresourced
# - sshd-keygen sshd uses one host key, kept on /var
# (mkosi.extra/etc/ssh/sshd_config.d)
RemoveFiles= RemoveFiles=
/usr/lib/modules/*/System.map /usr/lib/modules/*/System.map
/usr/lib/udev/hwdb.bin /usr/lib/udev/hwdb.bin
@@ -120,10 +129,10 @@ RemoveFiles=
/usr/lib/systemd/system/sshd-keygen* /usr/lib/systemd/system/sshd-keygen*
[Validation] [Validation]
# Signs systemd-boot and the UKI for Secure Boot, and puts our keys on the ESP, where systemd-boot # Sign systemd-boot and the UKI for Secure Boot, and put our keys on the ESP.
# enrolls them at first boot if the firmware is in setup mode (no keys enrolled; in Proxmox, an EFI # systemd-boot enrolls them at first boot if the firmware is in setup mode (no
# disk without pre-enrolled keys). mkosi.crt is the certificate; mkosi.key, its private key, is the # keys enrolled; in Proxmox, an EFI disk without pre-enrolled keys).
# SECUREBOOT_KEY secret of this repository, which the os workflow writes to mkosi.key. # mkosi.key is the SECUREBOOT_KEY secret, which .gitea/workflows/os.yml writes.
SecureBoot=yes SecureBoot=yes
SecureBootKey=mkosi.key SecureBootKey=mkosi.key
SecureBootCertificate=mkosi.crt SecureBootCertificate=mkosi.crt
+4 -1
View File
@@ -1,2 +1,5 @@
# Claude's config, with its login, lives on /var/lib/agent (kept across reboots), not in the home. # Environment
#
# Claude's config, with its login, lives on /var/lib/agent instead of in the
# home, because the home is wiped at every boot.
CLAUDE_CONFIG_DIR=/var/lib/agent/claude CLAUDE_CONFIG_DIR=/var/lib/agent/claude
+4 -1
View File
@@ -1,2 +1,5 @@
# /var, the only partition on disk that is written (mkosi.repart/30-var.conf). Grows to fill its partition at boot. # Mounts
#
# /var is the only partition on disk that is written (mkosi.repart/30-var.conf).
# x-systemd.growfs grows its filesystem to fill the partition at boot.
PARTLABEL=var /var ext4 x-systemd.growfs 0 2 PARTLABEL=var /var ext4 x-systemd.growfs 0 2
@@ -1,6 +1,8 @@
# ssh: only the user claude, only with the key asked at setup. The host key is kept on /var # ssh login
# (agent-boot makes it), so it stays the same across reboots. First value wins: this file sorts #
# before Fedora's 50-redhat.conf. # Only the user claude may log in, only with the key asked at setup. The host
# key lives on /var (agent-boot makes it), so it stays the same across reboots.
# The first value wins, and this file sorts before Fedora's 50-redhat.conf.
HostKey /var/lib/agent/ssh_host_ed25519_key HostKey /var/lib/agent/ssh_host_ed25519_key
AuthorizedKeysFile /var/lib/agent/authorized_keys AuthorizedKeysFile /var/lib/agent/authorized_keys
AllowUsers claude AllowUsers claude
+4 -2
View File
@@ -1,4 +1,6 @@
# Grow the /var partition to fill the disk at boot (systemd-repart); x-systemd.growfs in /etc/fstab # Grow /var
# then grows its filesystem. #
# systemd-repart grows the /var partition to fill the disk at boot.
# x-systemd.growfs in /etc/fstab then grows its filesystem.
[Partition] [Partition]
Type=var Type=var
+4 -2
View File
@@ -1,3 +1,5 @@
# Containers (file watchers, systemd in containers) run out of Fedora's 128 inotify instances # Kernel settings
# per user; 8192 is common on Kubernetes nodes. #
# Containers (file watchers, systemd in containers) run out of Fedora's 128
# inotify instances per user. 8192 is common on Kubernetes nodes.
fs.inotify.max_user_instances = 8192 fs.inotify.max_user_instances = 8192
@@ -1,4 +1,7 @@
# DHCP on the real network cards. Kind=!* skips virtual links. # Network
#
# DHCP on the real network cards. Kind=!* skips virtual links such as those of
# containers.
[Match] [Match]
Type=ether Type=ether
Kind=!* Kind=!*
@@ -1,8 +1,13 @@
# Services enabled in the image (mkosi runs systemctl preset-all). Fedora disables getty@.service, the # Enabled services
# login on the screen (tty1, and tty2-6 through its autovt@ alias); this file sorts first, so it wins. #
# mkosi runs systemctl preset-all, which applies this file. It sorts before
# Fedora's presets, so it wins where they disagree.
enable systemd-networkd.service enable systemd-networkd.service
enable systemd-resolved.service enable systemd-resolved.service
enable sshd.service enable sshd.service
# Fedora disables the login on the screen (tty1, and tty2-6 through its
# autovt@ alias).
enable getty@.service enable getty@.service
enable agent-setup@.service tty1 ttyS0 enable agent-setup@.service tty1 ttyS0
enable etc-shadow.mount enable etc-shadow.mount
@@ -10,8 +15,8 @@ enable agent-boot.service
enable claude-remote.path enable claude-remote.path
enable systemd-sysupdate-update.timer enable systemd-sysupdate-update.timer
enable systemd-sysupdate-reboot.timer enable systemd-sysupdate-reboot.timer
# Fedora enables these, but they do nothing here: no PAM or crypto changes on a read-only /etc, # Fedora enables these, but they do nothing here: no PAM or crypto changes on a
# no system or config extensions. # read-only /etc, and no system or config extensions.
disable authselect-apply-changes.service disable authselect-apply-changes.service
disable fips-crypto-policy-overlay.service disable fips-crypto-policy-overlay.service
disable systemd-sysext.service disable systemd-sysext.service
@@ -1,5 +1,7 @@
# Applies the setup answers at every boot (see /usr/libexec/agent-boot). Before the setup is done # Apply setup
# there are none; agent-setup starts this when it is. #
# Runs /usr/libexec/agent-boot at every boot. Before the setup is done there
# is nothing to apply, so agent-setup starts this once it is.
[Unit] [Unit]
Description=Apply agent setup Description=Apply agent setup
ConditionPathExists=/var/lib/agent/hostname ConditionPathExists=/var/lib/agent/hostname
@@ -1,5 +1,8 @@
# First boot: asks for the root password, hostname and ssh key, on the screen (tty1) and the serial # First-boot setup
# console (ttyS0) at once; whichever is answered first stops the other. #
# Runs /usr/libexec/agent-setup on the screen (tty1) and the serial console
# (ttyS0) at once, so it can be answered on either. Whichever is answered first
# stops the other.
[Unit] [Unit]
Description=Agent first-boot setup on %I Description=Agent first-boot setup on %I
ConditionPathExists=!/var/lib/agent/hostname ConditionPathExists=!/var/lib/agent/hostname
@@ -14,7 +17,7 @@ StandardOutput=tty
TTYPath=/dev/%I TTYPath=/dev/%I
TTYReset=yes TTYReset=yes
TTYVHangup=yes TTYVHangup=yes
# Answering on one console stops the setup on the other (SIGTERM), which is no failure. # Being stopped by the other console is not a failure.
SuccessExitStatus=SIGTERM SuccessExitStatus=SIGTERM
[Install] [Install]
@@ -1,4 +1,7 @@
# Starts Claude (Remote Control) once it is logged in: at boot, or when the user first logs in. # Start Claude when logged in
#
# Starts claude-remote.service once Claude has a login: at boot, or as soon as
# the user first logs in.
[Unit] [Unit]
Description=Start Claude Remote Control once logged in Description=Start Claude Remote Control once logged in
@@ -1,5 +1,8 @@
# Claude Code, in the background, controlled from claude.ai/code or the Claude app (Remote Control). # Claude Remote Control
# Works in Claude's home. Started by claude-remote.path once Claude is logged in. #
# Runs Claude Code in the background, in Claude's home, so it can be used from
# claude.ai/code or the Claude app. claude-remote.path starts it once Claude is
# logged in.
[Unit] [Unit]
Description=Claude Code Remote Control Description=Claude Code Remote Control
Wants=network-online.target user@1000.service Wants=network-online.target user@1000.service
@@ -1,4 +1,6 @@
# The root password. /etc is read-only, so agent-setup writes the shadow file to /var and this # Root password
#
# /etc is read-only, so agent-setup writes the shadow file to /var and this
# mounts it over /etc/shadow. # mounts it over /etc/shadow.
[Unit] [Unit]
Description=Root password from /var Description=Root password from /var
@@ -1,4 +1,7 @@
# The host key is made by agent-boot, once the setup is done; agent-setup then starts sshd. # sshd after setup
#
# sshd needs the host key, which agent-boot makes once the setup is done.
# agent-setup then starts sshd.
[Unit] [Unit]
After=agent-boot.service After=agent-boot.service
ConditionPathExists=/var/lib/agent/ssh_host_ed25519_key ConditionPathExists=/var/lib/agent/ssh_host_ed25519_key
@@ -1,6 +1,9 @@
# Updates the root filesystem: writes the next version to the unused root partition. # Root update
# Verify=yes: SHA256SUMS.gpg must be signed by a key in /usr/lib/systemd/import-pubring.pgp, and #
# SHA256SUMS checks each download. # Writes the next version of the root filesystem to the unused root partition.
# Verify=yes: SHA256SUMS.gpg must be signed by a key in
# /usr/lib/systemd/import-pubring.pgp, and SHA256SUMS checks each download.
# The files come from .gitea/workflows/os.yml.
[Transfer] [Transfer]
ProtectVersion=%A ProtectVersion=%A
Verify=yes Verify=yes
@@ -1,4 +1,7 @@
# Updates the root filesystem's dm-verity hashes, next to 10-root.transfer (see it for Verify=yes). # Root verity update
#
# Writes the dm-verity hashes that go with 10-root.transfer, which explains
# Verify=yes.
[Transfer] [Transfer]
ProtectVersion=%A ProtectVersion=%A
Verify=yes Verify=yes
@@ -1,8 +1,13 @@
# Installs the next UKI, which systemd-boot boots by default. Verify=yes: see 10-root.transfer. # UKI update
# It gets three tries (boot counting, the +@l-@d in its name; no Mode=0444, systemd-boot can't #
# rename a read-only file): systemd-bless-boot marks it good once a boot gets through # Installs the next UKI, which systemd-boot then boots by default. For
# (boot-complete.target); if none does, systemd-boot goes back to the previous UKI, and with it # Verify=yes, see 10-root.transfer.
# the previous root partition (each UKI holds its root hash). #
# The new UKI gets three tries (boot counting: the +@l-@d in its name).
# systemd-bless-boot marks it good once a boot reaches boot-complete.target.
# If no boot does, systemd-boot goes back to the previous UKI, and with it to
# the previous root partition, because each UKI holds its root hash. No
# Mode=0444: systemd-boot can't rename a read-only file.
[Transfer] [Transfer]
ProtectVersion=%A ProtectVersion=%A
Verify=yes Verify=yes
+4 -1
View File
@@ -1,2 +1,5 @@
# The user Claude runs as; /etc/subuid and /etc/subgid give it the ids of rootless podman. # Claude user
#
# The user Claude runs as. /etc/subuid and /etc/subgid give it the ids that
# rootless podman needs.
u claude 1000 "Claude" /var/home/claude /bin/bash u claude 1000 "Claude" /var/home/claude /bin/bash
+9 -4
View File
@@ -1,9 +1,14 @@
# State kept across reboots: the setup answers, the ssh host key and Claude's login # Agent directories
# (agent-boot wipes the rest of Claude's config). #
# What survives a reboot and what doesn't. Claude can only write to the wiped
# directories, /tmp and its own config.
# Kept: the setup answers, the ssh host key and Claude's login. agent-boot
# wipes the rest of Claude's config.
d /var/lib/agent 0755 root root - d /var/lib/agent 0755 root root -
d /var/lib/agent/claude 0700 claude claude - d /var/lib/agent/claude 0700 claude claude -
# Wiped at every boot (D empties a directory at boot): Claude's home, with its podman storage, and # Wiped at every boot (D): Claude's home, with its podman storage, and
# temporary files. These, /tmp and Claude's config are all that Claude can write. # temporary files.
D /var/home/claude 0700 claude claude - D /var/home/claude 0700 claude claude -
D /var/tmp 1777 root root - D /var/tmp 1777 root root -
# Start Claude's user manager at boot, for rootless podman and its own services. # Start Claude's user manager at boot, for rootless podman and its own services.
+6 -3
View File
@@ -1,7 +1,10 @@
#!/bin/bash #!/bin/bash
# Every boot (agent-boot.service), and after the setup: sets the hostname asked at setup (/etc is # Apply setup
# read-only, so it is set on every boot), makes the ssh host key the first time, and wipes #
# Claude's config except its login, so Claude starts fresh but logged in. # Runs at every boot (agent-boot.service) and right after the setup. /etc is
# read-only, so the hostname asked at setup is set again on every boot. Makes
# the ssh host key the first time. Wipes Claude's config except its login, so
# Claude starts fresh but logged in.
set -euo pipefail set -euo pipefail
cd /var/lib/agent cd /var/lib/agent
hostnamectl hostname --transient "$(cat hostname)" hostnamectl hostname --transient "$(cat hostname)"
+7 -4
View File
@@ -1,8 +1,11 @@
#!/bin/bash #!/bin/bash
# First boot: asks for the root password, the hostname and the ssh key of the user claude, on the # First-boot setup
# screen (tty1) and the serial console (ttyS0) at once (agent-setup@.service). #
# /etc is read-only, so the answers go to /var/lib/agent: the password to a shadow file there # Asks for the root password, the hostname and the ssh key of the user claude
# (etc-shadow.mount puts it over /etc/shadow), the rest is applied by agent-boot at every boot. # (agent-setup@.service). /etc is read-only, so the answers go to
# /var/lib/agent. The password goes into a shadow file there, which
# etc-shadow.mount puts over /etc/shadow. agent-boot applies the rest at every
# boot.
set -euo pipefail set -euo pipefail
echo "== Agent setup ==" echo "== Agent setup =="
+3 -1
View File
@@ -1,4 +1,6 @@
# EFI system partition: systemd-boot and the UKIs (two versions at most). # EFI system partition
#
# Holds systemd-boot and the UKIs, two versions at most.
[Partition] [Partition]
Type=esp Type=esp
Format=vfat Format=vfat
+7 -3
View File
@@ -1,5 +1,8 @@
# The root filesystem, slot A: /etc and /usr, read-only erofs protected by dm-verity (roothash= in # Root filesystem, slot A
# the UKI). Updates replace it whole. /var, the state, is its own partition (30-var.conf). #
# /etc and /usr as read-only erofs, protected by dm-verity (roothash= in the
# UKI). Updates replace it whole. /var holds the state, on its own partition
# (30-var.conf).
[Partition] [Partition]
Type=root Type=root
Label=%M_%A Label=%M_%A
@@ -11,5 +14,6 @@ Verity=data
VerityMatchKey=root VerityMatchKey=root
SizeMinBytes=1G SizeMinBytes=1G
SizeMaxBytes=1G SizeMaxBytes=1G
# The file name holds the partition UUID, which roothash= finds the root by; updates keep it (@u in sysupdate.d). # roothash= finds the root by its partition UUID, so the file name holds it
# and updates keep it (@u in mkosi.extra/usr/lib/sysupdate.d).
SplitName=%t.%U SplitName=%t.%U
+3 -1
View File
@@ -1,4 +1,6 @@
# dm-verity hashes of the root filesystem, slot A. # Root verity, slot A
#
# The dm-verity hashes of the root filesystem in 10-root.conf.
[Partition] [Partition]
Type=root-verity Type=root-verity
Label=%M_%A_verity Label=%M_%A_verity
+3 -1
View File
@@ -1,4 +1,6 @@
# The root filesystem, slot B: empty until systemd-sysupdate writes the next version. # Root filesystem, slot B
#
# Empty until systemd-sysupdate writes the next version to it.
[Partition] [Partition]
Type=root Type=root
Label=_empty Label=_empty
+3 -1
View File
@@ -1,4 +1,6 @@
# dm-verity hashes of the root filesystem, slot B. # Root verity, slot B
#
# The dm-verity hashes for 20-root-b.conf, empty until the next update.
[Partition] [Partition]
Type=root-verity Type=root-verity
Label=_empty Label=_empty
+6 -3
View File
@@ -1,6 +1,9 @@
# /var: Claude's home and the state that reboots and updates keep (/var/lib/agent: the setup answers # State partition
# and Claude's login, the root password). Mounted by /etc/fstab, which also grows it to fill the #
# disk at boot. Claude's home, with its containers, is wiped at every boot (tmpfiles.d/agent.conf). # /var: everything reboots and updates keep, such as the setup answers, the
# root password and Claude's login (/var/lib/agent). /etc/fstab mounts it and
# grows it to fill the disk at boot. Claude's home is on it too, but is wiped
# at every boot (mkosi.extra/usr/lib/tmpfiles.d/agent.conf).
[Partition] [Partition]
Type=var Type=var
Label=var Label=var
@@ -1,6 +1,7 @@
# Claude Code # Claude Code repository
# #
# Anthropic's package repository, stable channel. The key's fingerprint is # Anthropic's package repository, stable channel. mkosi uses it to install the
# claude-code package (mkosi.conf). The key's fingerprint is
# 31DDDE24DDFAB679F42D7BD2BAA929FF1A7ECACE. # 31DDDE24DDFAB679F42D7BD2BAA929FF1A7ECACE.
[claude-code] [claude-code]
name=Claude Code name=Claude Code
+3 -1
View File
@@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
# Image version # Image version
# #
# The build time (UTC), so every build is newer than the last. # Prints the build time in UTC (YYYYMMDDhhmm). Every build gets a higher
# version than the one before, which is how systemd-sysupdate tells that an
# update is newer.
date -u +%Y%m%d%H%M date -u +%Y%m%d%H%M