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