[Fedora-spins] [spin-kickstarts/f20] selinux context fixes for cloud image

Matthew Miller mattdm at fedoraproject.org
Mon Dec 9 19:56:33 UTC 2013


commit 9625f87b664d91a9972802e493103d6f62e506fb
Author: Matthew Miller <mattdm at mattdm.org>
Date:   Wed Dec 4 09:50:21 2013 -0500

    selinux context fixes for cloud image
    
    (cherry picked from commit 77ea37a42473764bdc58cfdd072fbcffd8d8ba9f)

 fedora-cloud-base.ks |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/fedora-cloud-base.ks b/fedora-cloud-base.ks
index 21b6473..5461bda 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


More information about the spins mailing list