]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/commit
systemd: Use sysusers mechanism inside the jail
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 29 Mar 2023 14:07:15 +0000 (16:07 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 11 Apr 2023 11:53:28 +0000 (11:53 +0000)
commitda4f96f132f3eff10670f9c1a4b39eb865d74aa4
treeba68fa4479262a4c93d075d2c3ec26739bb91ec9
parente4b39d703b5ce50ab062ae66b642b3318beb0cf8
systemd: Use sysusers mechanism inside the jail

Change the old user/group creation mechanism to use systemd's
sysusers mechanism instead.

This is a bit of a tricky part, because before systemd we do not have
this binary. So at first we have to push the sysusers files to the jails
sysusers directory and use the previous compiled and installed systemd-sysusers
binary in order to create the groups/users which are part of systemd
inside the jail.

After that, everything works quite normal when modifying the files or
direcotry owners.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
systemd/systemd.nm