mkosi: Rely on tmpfiles to put nsswitch.conf in place

Let's rely on tmpfiles to put our nsswitch.conf in place instead of
doing it in the post-install script. This moves us one step closer
to being able to build the mkosi image without having the source
tree available when NO_BUILD is used.
This commit is contained in:
Daan De Meyer 2025-04-09 15:27:51 +02:00
parent 5ec2ba5d2f
commit 8b1c66f72c
1 changed files with 2 additions and 1 deletions

View File

@ -34,8 +34,9 @@ done
# systemd-journald.
rm -rf "$BUILDROOT/var/log/journal"
# Make sure our own nsswitch.conf from the repository is used instead of the distribution's by deleting the
# distribution's and relying on tmpfiles to put ours in place during boot.
rm -f /etc/nsswitch.conf
cp "$SRCDIR/factory/etc/nsswitch.conf" /etc/nsswitch.conf
# Remove to make TEST-73-LOCALE pass on Ubuntu.
rm -f /etc/default/keyboard