]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Use /etc/nsswitch.conf from repo in mkosi image
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 3 May 2024 10:57:29 +0000 (12:57 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 6 May 2024 08:56:45 +0000 (10:56 +0200)
mkosi.images/system/mkosi.postinst.chroot

index f2b0ba09c2d796e9725c4648864b31a02cde1704..8b7aff1b56f7135d9080b58b421a95f9ae702494 100755 (executable)
@@ -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