From: Daan De Meyer Date: Fri, 3 May 2024 10:57:29 +0000 (+0200) Subject: mkosi: Use /etc/nsswitch.conf from repo in mkosi image X-Git-Tag: v256-rc2~97^2~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=efbd22e476c79ce9c2929ebc075f9c25db50fb6d;p=thirdparty%2Fsystemd.git mkosi: Use /etc/nsswitch.conf from repo in mkosi image --- diff --git a/mkosi.images/system/mkosi.postinst.chroot b/mkosi.images/system/mkosi.postinst.chroot index f2b0ba09c2d..8b7aff1b56f 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