# factory-etc.conf links what the image needs from /usr/share/factory/etc # (mkosi.finalize) into the empty /etc at boot, so updates to /usr take effect # in /etc too. The rest of the factory is unused package config. /etc itself # holds what the machine writes: passwd, shadow, group, machine-id, ld.so.cache, # /etc/systemd and the ssh host keys. systemd's own etc.conf sets up # os-release, nsswitch.conf and pam.d. # # /etc/systemd is filled from the presets at first boot: by PID 1 for system # units, and by mkosi.extra/usr/lib/systemd/system/preset-global.service for # user units. # # subuid and subgid are copied, because shadow-utils won't read them through a # link. Rootless podman needs them. C /etc/subgid C /etc/subuid # /etc/ssh is a writable directory, because sshd-keygen writes the host keys # there at first boot. d /etc/ssh 0755 L /etc/ssh/moduli L /etc/ssh/ssh_config L /etc/ssh/ssh_config.d L /etc/ssh/sshd_config L /etc/ssh/sshd_config.d # authselect holds the PAM files that /etc/pam.d links to. L /etc/authselect L /etc/security L /etc/environment L /etc/login.defs L /etc/shells # pki and ssl hold the CA certificates, and crypto-policies the TLS and ssh # settings. L /etc/pki L /etc/ssl L /etc/crypto-policies L /etc/bashrc L /etc/profile L /etc/profile.d L /etc/protocols L /etc/services L /etc/hostname L /etc/claude-code