]> git.ipfire.org Git - thirdparty/dracut-ng.git/commit
feat(systemd-sysusers): run systemd-sysusers as part of the build process
authorJo Zzsi <jozzsicsataban@gmail.com>
Sat, 4 Jan 2025 23:45:32 +0000 (18:45 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Sat, 11 Jan 2025 02:30:57 +0000 (21:30 -0500)
commitf3dacc013d90bd2c0bbfa04f5f9b167b65298440
tree07882fd8d52c38aa798cd7322ae9ce9f039c97fd
parent00902e25bb4b2a25a03c9ddec6b4c4c9f802650d
feat(systemd-sysusers): run systemd-sysusers as part of the build process

This PR makes the boot process faster and the generated initrd smaller.

It also make the code easier to maintain.

The primary goal of this PR is refactoring and removing code,
this is why it is not marked as perf() in the commit.

That said, with this PR systemd-sysusers no longer needs to be copied
into the initrd, so that is about 50KB saving both on when initrd gets
saved/compressed and when it gets loaded and uncompressed.

This PR also make the debugging slightly easier as one can just
inspect /etc/passwd with lsinitrd instead of trying to figure out
which users are created runtime.
modules.d/01systemd-sysusers/module-setup.sh [deleted file]
modules.d/01systemd-sysusers/sysusers-dracut.conf [deleted file]
modules.d/60systemd-sysusers/module-setup.sh [new file with mode: 0755]