From 044ea8229697804d41abfe5c8b7eb5eeb0de99f6 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Oct 12 2016 14:12:44 +0000 Subject: [PATCH 1/2] 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' {} \; From fa4537fc62dbb8b0acf394a9325b0dc78ffe3a52 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Oct 24 2016 18:22:37 +0000 Subject: [PATCH 2/2] post: Work around LVM archival conflicting with ostree This works around https://bugzilla.redhat.com/show_bug.cgi?id=1365297 --- diff --git a/treecompose-post.sh b/treecompose-post.sh index e9527b8..038763e 100755 --- a/treecompose-post.sh +++ b/treecompose-post.sh @@ -5,16 +5,52 @@ 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 +# Now, we generate a utility that changes a config file, and *requires* +# that that change was made. (Unlike sed) +cat >/tmp/assert-sed </usr/lib/tmpfiles.d/ostree-lvm.conf<