Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hooks: always write the FIPS preference for FIPS builds #287

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions hooks/001-extra-packages.chroot
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ FSbrQ9ACQFlqN49Ogbl47J6TZ7BrjDpROote55ixmrU=
EOF

# write FIPS PPA files if the current build is a local FIPS build
# for private builds a conf file is neccessary, setup for PPA access if provided
# for private builds a conf file is necessary, setup for PPA access if provided
if [ -e etc/apt/auth.conf.d/01-fips.conf ]; then
echo "deb https://private-ppa.launchpadcontent.net/fips-cc-stig/fips-under-certification/ubuntu $CODENAME main" > /etc/apt/sources.list.d/fips.list
cat >etc/apt/trusted.gpg.d/fips-cc-stig.asc <<'EOF'
Expand Down Expand Up @@ -153,7 +153,11 @@ UNuHk+m6RrdnU0GhZFiccabKzM11OElMcupvOQeIRA==
=MKdQ
-----END PGP PUBLIC KEY BLOCK-----
EOF

fi

# always install the preference though, both for LP and
# local
if [[ ${SNAP_FIPS_BUILD+x} ]]; then
mkdir -p etc/apt/preferences.d/
cat >etc/apt/preferences.d/fips.pref <<'EOF'
Package: *
Expand Down
Loading