mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-09 03:48:05 +00:00
local-build: Do not use measured rootfs on s390x
IBM SE ensures to make initrd measured by genprotimg and verified by ultravisor. Let's not build the measured rootf on s390x. Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
This commit is contained in:
parent
429b2654f4
commit
27ce3eef12
@ -389,7 +389,11 @@ install_image() {
|
|||||||
|
|
||||||
#Install guest image for confidential guests
|
#Install guest image for confidential guests
|
||||||
install_image_confidential() {
|
install_image_confidential() {
|
||||||
|
if [ "${ARCH}" == "s390x" ]; then
|
||||||
|
export MEASURED_ROOTFS=no
|
||||||
|
else
|
||||||
export MEASURED_ROOTFS=yes
|
export MEASURED_ROOTFS=yes
|
||||||
|
fi
|
||||||
export PULL_TYPE=default
|
export PULL_TYPE=default
|
||||||
install_image "confidential"
|
install_image "confidential"
|
||||||
}
|
}
|
||||||
@ -467,7 +471,11 @@ install_initrd() {
|
|||||||
|
|
||||||
#Install guest initrd for confidential guests
|
#Install guest initrd for confidential guests
|
||||||
install_initrd_confidential() {
|
install_initrd_confidential() {
|
||||||
|
if [ "${ARCH}" == "s390x" ]; then
|
||||||
|
export MEASURED_ROOTFS=no
|
||||||
|
else
|
||||||
export MEASURED_ROOTFS=yes
|
export MEASURED_ROOTFS=yes
|
||||||
|
fi
|
||||||
export PULL_TYPE=default
|
export PULL_TYPE=default
|
||||||
install_initrd "confidential"
|
install_initrd "confidential"
|
||||||
}
|
}
|
||||||
@ -610,7 +618,11 @@ install_kernel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_kernel_confidential() {
|
install_kernel_confidential() {
|
||||||
|
if [ "${ARCH}" == "s390x" ]; then
|
||||||
|
export MEASURED_ROOTFS=no
|
||||||
|
else
|
||||||
export MEASURED_ROOTFS=yes
|
export MEASURED_ROOTFS=yes
|
||||||
|
fi
|
||||||
|
|
||||||
install_kernel_helper \
|
install_kernel_helper \
|
||||||
"assets.kernel.confidential" \
|
"assets.kernel.confidential" \
|
||||||
@ -850,6 +862,9 @@ install_shimv2() {
|
|||||||
export GO_VERSION
|
export GO_VERSION
|
||||||
export RUST_VERSION
|
export RUST_VERSION
|
||||||
export MEASURED_ROOTFS
|
export MEASURED_ROOTFS
|
||||||
|
if [ "${ARCH}" == "s390x" ]; then
|
||||||
|
export MEASURED_ROOTFS=no
|
||||||
|
fi
|
||||||
|
|
||||||
DESTDIR="${destdir}" PREFIX="${prefix}" "${shimv2_builder}"
|
DESTDIR="${destdir}" PREFIX="${prefix}" "${shimv2_builder}"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user