Commit Graph

3 Commits

Author SHA1 Message Date
Sergio Arroutbi
9ec07ec0fd
Add clevis user to tss group via sysusers
During image mode updates, the %pre scriptlet changes to add clevis
to the tss group are overwritten by preserved host configuration.
Adding the group membership directly in the sysusers configuration
ensures it persists across image mode updates.

Resolves: #RHEL-132188

Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
2026-01-08 15:32:47 +01:00
Luca BRUNO
94157136c2 clevis: simplify sysusers.d fragment by using default 'nologin' shell
This tweaks the existing sysuser.d fragment in order to simplify it.
The 'nologin' shell is the documented systemd default, so there is
no need to explicitly specify it.
This change allows better handling of default vs custom shell in the
macro logic which bridges between `systemd-sysusers` and `useradd`.
2022-08-05 09:32:00 +00:00
Luca BRUNO
2b2840995c
spec: add clevis sysusers.d entry
This adds a sysusers.d entry for the package, and moves user creation
to the relevant compat macro.

Refs:
 * https://www.freedesktop.org/software/systemd/man/sysusers.d.html
 * https://fedoraproject.org/wiki/Changes/Adopting_sysusers.d_format
 * https://pagure.io/packaging-committee/pull-request/981
2020-12-17 10:33:25 +00:00