2
0
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:
Vinícius Ferrão
2026-11-02 22:50:57 -03:00
parent 21984aade8
commit d52b2d463b
2 changed files with 0 additions and 4 deletions
@@ -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