1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-25 18:50:18 +03:00

mkosi: Enable userdb tmpfiles dropin on Fedora/CentOS

It's disabled by default in the Fedora spec, but still available
as an example file. Let's symlink it to the proper name in the images
to enable it again.
This commit is contained in:
Daan De Meyer 2025-02-20 15:08:53 +01:00 committed by Lennart Poettering
parent b3adb7cd63
commit 4d65c9f70c

@ -52,6 +52,12 @@ rm -f /etc/default/keyboard
systemctl mask isc-dhcp-server.service
systemctl mask mdmonitor.service
# Fedora disables the userdb ssh dropin by default, but helpfully leaves it available in
# the package so that we can just symlink it to a name that will be picked up by systemd-tmpfiles.
if [[ -f /usr/lib/tmpfiles.d/20-systemd-userdb.conf.example ]]; then
ln --symbolic 20-systemd-userdb.conf.example /usr/lib/tmpfiles.d/20-systemd-userdb.conf
fi
# This is executed inside the chroot so no need to disable any features as the default features will match
# the kernel's supported features.
SYSTEMD_REPART_MKFS_OPTIONS_EXT4="" \