From ccacd71b69f434a8d003d18df73a5578ea9b11ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Tue, 24 Nov 2026 21:36:48 -0300 Subject: [PATCH] docs(netboot): explain standalone policy generation --- build-utils/README.netboot-policy.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 build-utils/README.netboot-policy.md diff --git a/build-utils/README.netboot-policy.md b/build-utils/README.netboot-policy.md new file mode 100644 index 0000000000..7f43bdeca5 --- /dev/null +++ b/build-utils/README.netboot-policy.md @@ -0,0 +1,20 @@ +# Netboot image policy + +`netboot-policy.sh` owns the SELinux and firewalld helpers used by the RHEL +and Rocky postinstall profiles listed in `netboot_policy_artifacts()`. +The profiles contain generated copies so an administrator can copy and +customize a profile without installing a separate runtime library. + +After editing the policy, run: + +```sh +build-utils/sync-netboot-policy --write +build-utils/sync-netboot-policy --check +``` + +Commit the canonical policy and regenerated profiles together. RPM and Debian +builders reject stale copies when building xCAT-server. + +Each profile still selects which helpers to call. Generation does not add +firewalld removal to RHEL 7 or service profiles, and genimage does not apply +this policy when an administrator supplies a different postinstall script.