]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(systemd): include hosts and nsswitch.conf in hostonly mode
authorJóhann B. Guðmundsson <johannbg@gmail.com>
Wed, 21 Apr 2021 11:57:32 +0000 (11:57 +0000)
committerHarald Hoyer <harald@hoyer.xyz>
Wed, 21 Apr 2021 13:13:35 +0000 (15:13 +0200)
Adding /etc/hosts and /etc/nsswitch.conf to the hostonly install section.

modules.d/00systemd/module-setup.sh

index 809cd6c467fe76044f457c46b475d18058e2e127..ff1981332d3783a0b09a5ae9ad30fc5bad3fb832 100755 (executable)
@@ -174,7 +174,9 @@ install() {
             /etc/systemd/journald.conf.d/*.conf \
             /etc/systemd/system.conf \
             /etc/systemd/system.conf.d/*.conf \
+            /etc/hosts \
             /etc/hostname \
+            /etc/nsswitch.conf \
             /etc/machine-id \
             /etc/machine-info \
             /etc/vconsole.conf \