From 77ea37a42473764bdc58cfdd072fbcffd8d8ba9f Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Wed, 4 Dec 2013 09:50:21 -0500 Subject: [PATCH] selinux context fixes for cloud image --- fedora-cloud-base.ks | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fedora-cloud-base.ks b/fedora-cloud-base.ks index adae635..0ac5b4e 100644 --- a/fedora-cloud-base.ks +++ b/fedora-cloud-base.ks @@ -196,7 +196,12 @@ yum clean all truncate -c -s 0 /var/log/yum.log echo "Fixing SELinux contexts." +touch /var/log/cron +touch /var/log/boot.log +mkdir -p /var/cache/yum +chattr -i /boot/extlinux/ldlinux.sys /usr/sbin/fixfiles -R -a restore +chattr +i /boot/extlinux/ldlinux.sys echo "Zeroing out empty space." # This forces the filesystem to reclaim space from deleted files