903b9a76e5
The FIPS jobs use centos-8-stream controllers but the image is still
based on ubuntu, this commit updates the amphora images to
centos-8-stream and enable FIPS inside the amphora.
Change-Id: I8916796ed6727a103907a33d3c14e99e1d3734e6
(cherry picked from commit 74a7cbe122
)
29 lines
558 B
Bash
Executable File
29 lines
558 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
case $DISTRO_NAME in
|
|
ubuntu | debian )
|
|
echo "ERROR: $DISTRO_NAME is not supported for FIPS mode."
|
|
exit 1
|
|
;;
|
|
fedora | centos* | rhel* )
|
|
DIB_DRACUT_ENABLED_MODULES+="
|
|
- name: fips
|
|
"
|
|
export DIB_DRACUT_ENABLED_MODULES
|
|
|
|
DIB_BOOTLOADER_DEFAULT_CMDLINE+=" fips=1"
|
|
export DIB_BOOTLOADER_DEFAULT_CMDLINE
|
|
;;
|
|
*)
|
|
echo "ERROR: Unsupported distribution $DISTRO_NAME"
|
|
exit 1
|
|
;;
|
|
esac
|