From e3d8b01afa7c3019a1fb9c8140ed13594bc43c55 Mon Sep 17 00:00:00 2001 From: David Shea Date: Tue, 6 Oct 2015 11:47:17 -0400 Subject: [PATCH] Do not let systemd-tmpfiles set up /etc on boot The etc portion of systemd-tmpfiles creates a broken /etc/resolv.conf, which breaks networking, and the rest of the stuff in the there is already installed to the stage2. --- share/runtime-postinstall.tmpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/share/runtime-postinstall.tmpl b/share/runtime-postinstall.tmpl index 767291a6..7708d985 100644 --- a/share/runtime-postinstall.tmpl +++ b/share/runtime-postinstall.tmpl @@ -44,6 +44,12 @@ systemctl mask fedora-configure.service fedora-loadmodules.service \ systemd-tmpfiles-clean.service systemd-tmpfiles-clean.timer \ ldconfig.service +## Remove the more terrible parts of systemd-tmpfiles. +## etc.conf is written with the assumption that /etc/ is empty, which is +## ridiculous, and it also creates a broken /etc/resolv.conf, which breaks +## networking. +remove usr/lib/tmpfiles.d/etc.conf + ## Make logind activate anaconda-shell@.service on switch to empty VT symlink anaconda-shell@.service lib/systemd/system/autovt@.service replace "#ReserveVT=6" "ReserveVT=2" etc/systemd/logind.conf