From d52b2d463bf774a353ed64a0727ff905c8ec4ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Mon, 2 Nov 2026 22:50:57 -0300 Subject: [PATCH] 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. --- xCAT-server/share/xcat/install/scripts/post.rhels10 | 2 -- xCAT-server/share/xcat/install/scripts/post.rhels8 | 2 -- 2 files changed, 4 deletions(-) diff --git a/xCAT-server/share/xcat/install/scripts/post.rhels10 b/xCAT-server/share/xcat/install/scripts/post.rhels10 index 75e8647476..42158dc8c7 100644 --- a/xCAT-server/share/xcat/install/scripts/post.rhels10 +++ b/xCAT-server/share/xcat/install/scripts/post.rhels10 @@ -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 diff --git a/xCAT-server/share/xcat/install/scripts/post.rhels8 b/xCAT-server/share/xcat/install/scripts/post.rhels8 index e396315c4b..11d185a198 100644 --- a/xCAT-server/share/xcat/install/scripts/post.rhels8 +++ b/xCAT-server/share/xcat/install/scripts/post.rhels8 @@ -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