Skip to content
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
10 changes: 10 additions & 0 deletions ubuntu24.04/nvidia-driver
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,20 @@ _enable_fips_if_required() {
if [[ -n "${UBUNTU_PRO_TOKEN}" && ${KERNEL_VERSION} =~ "fips" ]]; then
echo "Ubuntu Pro token and FIPS kernel detected"
apt-get -qq install --no-install-recommends ubuntu-advantage-tools > /dev/null

# This workaround is needed in Ubuntu 24.04 as OpenSSL attempts to leverage the FIPS provider
# when the underlying kernel is FIPS enabled.
export OPENSSL_FORCE_FIPS_MODE=0

echo "Attaching Ubuntu Pro token..."
pro attach --no-auto-enable "${UBUNTU_PRO_TOKEN}"
echo "Enabling FIPS apt repo access..."
pro enable --access-only --assume-yes fips-updates
echo "Installing the OpenSSL FIPS modules"
apt-get -qq install --no-install-recommends ubuntu-fips-userspace > /dev/null

# With the OpenSSL FIPS module installed, OpenSSL can now work with the default settings,
unset OPENSSL_FORCE_FIPS_MODE
fi
}

Expand Down