# RL8 kickstart and OSCAP Anaconda

**URL:** <https://forums.rockylinux.org/t/rl8-kickstart-and-oscap-anaconda/9704>\
**Category:** Rocky Linux Help & Support\
**Created:** [April 26, 2023, 7:35am UTC](https://forums.rockylinux.org/t/rl8-kickstart-and-oscap-anaconda/9704 "2023-04-26T07:35:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkeller](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@bkeller](https://forums.rockylinux.org/u/bkeller)\
**Post date:** [April 26, 2023, 7:35am UTC](https://forums.rockylinux.org/t/rl8-kickstart-and-oscap-anaconda/9704/1 "2023-04-26T07:35:16Z")

</div>

Hi,

I want to automate installation of RL8 with kickstart, everything works as expected… except application of the security profile with the OSCAP Anaconda plugin.

here are the corresponding lines in my custom.ks file

```auto
%addon org_fedora_oscap
    content-type = scap-security-guide
    datastream-id = scap_org.open-scap_datastream_from_xccdf_ssg-rhel8-xccdf-1.2.xml
    xccdf-id = scap_org.open-scap_cref_ssg-rhel8-xccdf-1.2.xml
    profile = xccdf_org.ssgproject.content_profile_anssi_bp28_minimal
%end

```

and the error message during installation

```auto
Something went wrong during the final hardering: 
Content evaluation and remediation with the oscap tool failed: 
OpenSCAP Error: 
Failed to locate a datastream with ID matching 'scap_org.open-scap_datastream_from_xccdf_ssg-rhel8-xccdf-1.2.xml' ID 
and checklist inside matching 'scap_org.open-scap_cref_ssg-rhel8-xccdf-1.2.xml' ID.
[/builddir/build/BUILD/openscap-13.6/src/DS/ds_sds_session.c:223]

```

I tried to change the name (rhel8 \> rl8) of the following files but the result is worse : I have python errors…

```auto
%addon org_fedora_oscap
    content-type = scap-security-guide
    datastream-id = scap_org.open-scap_datastream_from_xccdf_ssg-rl8-xccdf-1.2.xml
    xccdf-id = scap_org.open-scap_cref_ssg-rl8-xccdf-1.2.xml
    profile = xccdf_org.ssgproject.content_profile_anssi_bp28_minimal
%end

```

Does anyone have an idea?

Thanks

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:16am UTC](https://forums.rockylinux.org/t/rl8-kickstart-and-oscap-anaconda/9704/2 "2023-08-25T03:16:34Z")

</div>


