mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-19 08:52:15 +00:00
10c2bd5d9b
compute.rhels10.aarch64.postinstall arrived after the other netboot postinstall scripts were anchored, and it carries the old pattern: s/SELINUX=enforcing\|permissive/SELINUX=disabled/. The alternation binds to the whole pattern, so the right branch is the bare word permissive. On a permissive image the substitution writes SELINUX=SELINUX=disabled, which no SELinux reads, and it rewrites the comment line that names permissive. On a disabled image it still rewrites that comment. Anchor the pattern to the SELINUX= line, as the other scripts do. postinstall_selinux_config.bats fails three of its six checks against this script before the change. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>