From 9657378ed6126e4c2fb6029c9a7246ce7020450a Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Oct 12 2016 14:14:00 +0000 Subject: post: Enable dhcp=internal by default for NetworkManager This will likely work around a current SELinux denial, but it also sets the stage for the future, removing dhclient. See https://bugzilla.redhat.com/show_bug.cgi?id=1204226 --- diff --git a/treecompose-post.sh b/treecompose-post.sh index b1221c2..e9527b8 100755 --- a/treecompose-post.sh +++ b/treecompose-post.sh @@ -5,6 +5,10 @@ set -xeuo pipefail # Work around https://bugzilla.redhat.com/show_bug.cgi?id=1265295 echo 'Storage=persistent' >> /etc/systemd/journald.conf +# http://www.spinics.net/linux/fedora/fedora-cloud/msg06264.html +# and https://lists.fedoraproject.org/archives/list/cloud@lists.fedoraproject.org/thread/3HY5LLIWESIL7OIZTDP7VWPOVI6I5KJM/ +sed -i -e 's,^\(\[main\]\),\1\ndhcp=internal\n,' /etc/NetworkManager/NetworkManager.conf + # Work around https://github.com/systemd/systemd/issues/4082 find /usr/lib/systemd/system/ -type f -exec sed -i -e '/^PrivateTmp=/d' -e '/^Protect\(Home\|System\)=/d' {} \;