Skip to content

Commit

Permalink
Remove patterns-base-fips from SLFO base containers
Browse files Browse the repository at this point in the history
This is pulling crypto-policies and we have base-fips now instead.
  • Loading branch information
dirkmueller committed Nov 26, 2024
1 parent 6e39a80 commit ab10773
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/bci_build/package/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,12 @@ def _get_base_kwargs(os_version: OsVersion) -> dict:
"cracklib-dict-small",
"filesystem",
"jdupes",
"patterns-base-fips",
"shadow",
"zypper",
]
+ (["libcurl-mini4"] if os_version.is_slfo else [])
+ (
["kubic-locale-archive", "rpm-ndb"]
["kubic-locale-archive", "rpm-ndb", "patterns-base-fips"]
if os_version.is_sle15
else ["glibc-locale-base"]
)
Expand Down
13 changes: 8 additions & 5 deletions src/bci_build/package/basecontainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,14 @@ def _get_supported_until_fips(os_version: OsVersion) -> datetime.date:
os_version in CAN_BE_LATEST_OS_VERSION or os_version in ALL_OS_LTSS_VERSIONS
),
pretty_name=_get_fips_pretty_name(os_version),
package_list=[*os_version.release_package_names, "coreutils"]
+ (
["fipscheck"]
if os_version == OsVersion.SP3
else ["crypto-policies-scripts"]
package_list=(
[*os_version.release_package_names, "coreutils"]
+ (
["fipscheck"]
if os_version == OsVersion.SP3
else ["crypto-policies-scripts"]
)
+ (["patterns-base-fips"] if os_version.is_slfo else [])
),
extra_labels={
"usage": "This container should only be used on a FIPS enabled host (fips=1 on kernel cmdline)."
Expand Down

0 comments on commit ab10773

Please sign in to comment.