selinux context fixes for cloud image

This commit is contained in:
Matthew Miller 2013-12-04 09:50:21 -05:00
parent d3410ae947
commit 77ea37a424
1 changed files with 5 additions and 0 deletions

View File

@ -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