Skip to main content

max / alloy

1.0 KB · 19 lines History Blame Raw
1 # The account greetd drops to before spawning tuigreet. Without it greetd exits
2 # with "configured default session user 'greeter' not found", and Fedora bootc's
3 # minimal user database does not carry one.
4 #
5 # A sysusers file rather than the `useradd` this used to be, and the difference
6 # is the upgrade path rather than tidiness. /etc is per-machine on a bootc
7 # system: an account baked into the image's /etc/passwd reaches a fresh install
8 # and never reaches a machine that upgrades into the image carrying it. Fedora
9 # runs systemd-sysusers on every boot, so a declaration here lands on both.
10 # `bootc container lint` is what names the difference, under `sysusers`.
11 #
12 # Client-only. It is deleted on `server`, which has no greeter to drop to, and
13 # the Containerfile asserts the account is absent there.
14 #
15 # Home is `-`, which resolves to /, because there is no /home/greeter and there
16 # should not be: greetd keeps the greeter's own state under /var/lib/greetd,
17 # which the greetd package owns.
18 u greeter - "greetd greeter" - /sbin/nologin
19