random-archer / mkinitcpio-systemd-tool

Provisioning tool for systemd in initramfs (systemd-tool)
https://www.archlinux.org/packages/community/any/mkinitcpio-systemd-tool/
Other
112 stars 27 forks source link

Added Support for Preserving Additional Users/Groups #111

Closed fandingo closed 1 month ago

fandingo commented 2 months ago

do_secret_clean() in initrd-build.sh wipes all user accounts besides a hard coded list. If a user would like to add a service that needs to run as a specific user, they previously could not because the user would be removed.

This patch adds a config option to preserve additional accounts and reworks the build script a little to make this it cleaner.

=====

The overarching purpose of this patch is that I want to run Avahi, so I can use mDNS to connect to hosts.