From efbd22e476c79ce9c2929ebc075f9c25db50fb6d Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 3 May 2024 12:57:29 +0200 Subject: [PATCH] mkosi: Use /etc/nsswitch.conf from repo in mkosi image --- mkosi.images/system/mkosi.postinst.chroot | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mkosi.images/system/mkosi.postinst.chroot b/mkosi.images/system/mkosi.postinst.chroot index f2b0ba09c2..8b7aff1b56 100755 --- a/mkosi.images/system/mkosi.postinst.chroot +++ b/mkosi.images/system/mkosi.postinst.chroot @@ -72,3 +72,6 @@ done # We want /var/log/journal to be created on first boot so it can be created with the right chattr settings by # systemd-journald. rm -r "$BUILDROOT/var/log/journal" + +rm -f /etc/nsswitch.conf +cp "$SRCDIR/factory/etc/nsswitch.conf" /etc/nsswitch.conf -- 2.25.1