mirror of
https://pagure.io/fedora-kickstarts.git
synced 2025-12-11 09:30:30 +08:00
selinux context fixes for cloud image
(cherry picked from commit 77ea37a424)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user