mirror of
https://github.com/systemd/systemd
synced 2025-10-06 00:13:24 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user