From 80b7c64f952ad1345036a63b069e361ede4305e8 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. --- 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 069df288c9..93d625b561 100644 --- a/src/XCCDF_POLICY/xccdf_policy_remediate.c +++ b/src/XCCDF_POLICY/xccdf_policy_remediate.c @@ -1405,6 +1405,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" "%s\n", diff --git a/tests/API/XCCDF/unittests/test_remediation_blueprint.toml b/tests/API/XCCDF/unittests/test_remediation_blueprint.toml index e4ce106b72..531f538b45 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