mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-20 17:32:15 +00:00
fix(install): run the SELinux relabel after the EL post scripts
post.rhels8 and post.rhels10 end with exit 0. The kickstart templates include them inline in the %post script, so the exit ends that script before #SELINUXRELABEL#, and restorecon never runs on an enforcing or permissive node. Both scripts now end with their last command, so the templates reach the relabel after the xCAT post scripts wrote their files.
This commit is contained in:
@@ -16,5 +16,3 @@ do
|
||||
sed -i -e 's/^[[:space:]]*enabled[[:space:]]*=[[:space:]]*1/enabled=0/' /etc/yum.repos.d/$repo_file
|
||||
fi
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
||||
@@ -41,5 +41,3 @@ do
|
||||
sed -i -e 's/^[[:space:]]*enabled[[:space:]]*=[[:space:]]*1/enabled=0/' /etc/yum.repos.d/$repo_file
|
||||
fi
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user