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:
32 files changed
+191
-113
No files matched your search
@@ -1,4 +1,6 @@
|
||||
# Grow the /var partition to fill the disk at boot (systemd-repart); x-systemd.growfs in /etc/fstab
|
||||
# then grows its filesystem.
|
||||
# Grow /var
|
||||
#
|
||||
# systemd-repart grows the /var partition to fill the disk at boot.
|
||||
# x-systemd.growfs in /etc/fstab then grows its filesystem.
|
||||
[Partition]
|
||||
Type=var
|
||||
@@ -1,3 +1,5 @@
|
||||
# Containers (file watchers, systemd in containers) run out of Fedora's 128 inotify instances
|
||||
# per user; 8192 is common on Kubernetes nodes.
|
||||
# Kernel settings
|
||||
#
|
||||
# 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
|
||||
@@ -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]
|
||||
Type=ether
|
||||
Kind=!*
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
# Services enabled in the image (mkosi runs systemctl preset-all). Fedora disables getty@.service, the
|
||||
# login on the screen (tty1, and tty2-6 through its autovt@ alias); this file sorts first, so it wins.
|
||||
# Enabled services
|
||||
#
|
||||
# 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-resolved.service
|
||||
enable sshd.service
|
||||
# Fedora disables the login on the screen (tty1, and tty2-6 through its
|
||||
# autovt@ alias).
|
||||
enable getty@.service
|
||||
enable agent-setup@.service tty1 ttyS0
|
||||
enable etc-shadow.mount
|
||||
@@ -10,8 +15,8 @@ enable agent-boot.service
|
||||
enable claude-remote.path
|
||||
enable systemd-sysupdate-update.timer
|
||||
enable systemd-sysupdate-reboot.timer
|
||||
# Fedora enables these, but they do nothing here: no PAM or crypto changes on a read-only /etc,
|
||||
# no system or config extensions.
|
||||
# Fedora enables these, but they do nothing here: no PAM or crypto changes on a
|
||||
# read-only /etc, and no system or config extensions.
|
||||
disable authselect-apply-changes.service
|
||||
disable fips-crypto-policy-overlay.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
|
||||
# there are none; agent-setup starts this when it is.
|
||||
# Apply setup
|
||||
#
|
||||
# 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]
|
||||
Description=Apply agent setup
|
||||
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
|
||||
# console (ttyS0) at once; whichever is answered first stops the other.
|
||||
# First-boot setup
|
||||
#
|
||||
# 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]
|
||||
Description=Agent first-boot setup on %I
|
||||
ConditionPathExists=!/var/lib/agent/hostname
|
||||
@@ -14,7 +17,7 @@ StandardOutput=tty
|
||||
TTYPath=/dev/%I
|
||||
TTYReset=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
|
||||
|
||||
[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]
|
||||
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).
|
||||
# Works in Claude's home. Started by claude-remote.path once Claude is logged in.
|
||||
# Claude Remote Control
|
||||
#
|
||||
# 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]
|
||||
Description=Claude Code Remote Control
|
||||
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.
|
||||
[Unit]
|
||||
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]
|
||||
After=agent-boot.service
|
||||
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.
|
||||
# Verify=yes: SHA256SUMS.gpg must be signed by a key in /usr/lib/systemd/import-pubring.pgp, and
|
||||
# SHA256SUMS checks each download.
|
||||
# Root update
|
||||
#
|
||||
# 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]
|
||||
ProtectVersion=%A
|
||||
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]
|
||||
ProtectVersion=%A
|
||||
Verify=yes
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
# Installs the next UKI, which systemd-boot boots by default. Verify=yes: see 10-root.transfer.
|
||||
# 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
|
||||
# (boot-complete.target); if none does, systemd-boot goes back to the previous UKI, and with it
|
||||
# the previous root partition (each UKI holds its root hash).
|
||||
# UKI update
|
||||
#
|
||||
# Installs the next UKI, which systemd-boot then boots by default. For
|
||||
# Verify=yes, see 10-root.transfer.
|
||||
#
|
||||
# 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]
|
||||
ProtectVersion=%A
|
||||
Verify=yes
|
||||
|
||||
@@ -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
|
||||
@@ -1,9 +1,14 @@
|
||||
# State kept across reboots: the setup answers, the ssh host key and Claude's login
|
||||
# (agent-boot wipes the rest of Claude's config).
|
||||
# Agent directories
|
||||
#
|
||||
# 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/claude 0700 claude claude -
|
||||
# Wiped at every boot (D empties a directory at boot): Claude's home, with its podman storage, and
|
||||
# temporary files. These, /tmp and Claude's config are all that Claude can write.
|
||||
# Wiped at every boot (D): Claude's home, with its podman storage, and
|
||||
# temporary files.
|
||||
D /var/home/claude 0700 claude claude -
|
||||
D /var/tmp 1777 root root -
|
||||
# Start Claude's user manager at boot, for rootless podman and its own services.
|
||||
|
||||
Reference in new issue
Block a user