os / os (push) Canceled after 0s
- Follow AGENTS.md style: headers start with the file's name, short notes are full sentences, comments within 80 columns. - Build with mkosi's tools tree, pinned to the image's release (ToolsTreeRelease=%r): rawhide's repositories made the image rawhide. - Incremental builds with mkosi.cache/ for faster local rebuilds. - Hostname= instead of systemd.hostname= on the kernel command line. - mkosi.finalize: bash, no cd, and L+ for /etc/systemd. PID 1 applies the presets at first boot and made /etc/systemd/system, which blocked the link, so /etc/systemd/user (the user's D-Bus) was missing. - Disable homed, userdbd and nsresourced with presets instead of deleting their units. Drop modules the kernel has built in. - mkosi.version adds the git commit to the version. - One dev container per worktree or session in CLAUDE.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
425 B
SYSTEMD
14 lines
425 B
SYSTEMD
# sshd.path starts sshd only once root or the user agent has an ssh key, so a
|
|
# new VM has no open port. Root adds the keys after the first boot
|
|
# (README.md). The ssh.authorized_keys.root credential also fills root's, such
|
|
# as for mkosi ssh.
|
|
[Unit]
|
|
Description=Start sshd once an ssh key is set
|
|
|
|
[Path]
|
|
PathExists=/home/agent/.ssh/authorized_keys
|
|
PathExists=/root/.ssh/authorized_keys
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|