From aa8f7a655e664edfe46fcfc3e253b36e5b6b83b0 Mon Sep 17 00:00:00 2001 From: Asish Kumar Date: Tue, 12 May 2026 01:02:48 +0530 Subject: [PATCH] Generate raw partitioning mode in blueprints Emit partitioning_mode = "raw" in generated Image Builder blueprints so composer produces raw disk images instead of qcow2 output. Update the blueprint remediation golden fixture to cover the generated customizations section. Fixes #2334. (cherry picked from commit 80b7c64f952ad1345036a63b069e361ede4305e8) --- src/XCCDF_POLICY/xccdf_policy_remediate.c | 2 ++ tests/API/XCCDF/unittests/test_remediation_blueprint.toml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/XCCDF_POLICY/xccdf_policy_remediate.c b/src/XCCDF_POLICY/xccdf_policy_remediate.c index c7c02f0135..07f486a0f8 100644 --- a/src/XCCDF_POLICY/xccdf_policy_remediate.c +++ b/src/XCCDF_POLICY/xccdf_policy_remediate.c @@ -1156,6 +1156,8 @@ static int _write_script_header_to_fd(struct xccdf_policy *policy, struct xccdf_ "name = \"hardened_%s\"\n" "description = \"%s\"\n" "version = \"%s\"\n\n" + "[customizations]\n" + "partitioning_mode = \"raw\"\n\n" "[customizations.openscap]\n" "profile_id = \"%s\"\n" "# If your hardening data stream is not part of the 'scap-security-guide' package\n" diff --git a/tests/API/XCCDF/unittests/test_remediation_blueprint.toml b/tests/API/XCCDF/unittests/test_remediation_blueprint.toml index 2dfd8fce50..a227a1a324 100644 --- a/tests/API/XCCDF/unittests/test_remediation_blueprint.toml +++ b/tests/API/XCCDF/unittests/test_remediation_blueprint.toml @@ -23,6 +23,9 @@ name = "hardened_xccdf_moc.elpmaxe.www_profile_common" description = "Profile title on one line" version = "1.0" +[customizations] +partitioning_mode = "raw" + [customizations.openscap] profile_id = "xccdf_moc.elpmaxe.www_profile_common" # If your hardening data stream is not part of the 'scap-security-guide' package