mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-14 14:14:15 +00:00
osbuilder: copy efi_secret module for online_sev_kbc
Bug fix for #5651. Faulty bash syntax let a initrd build complete, but not copy the kernel module. This change fixes the if logic to work as an 'or' as intended. Fixes: #6024 Signed-off-by: Alex Carter <Alex.Carter@ibm.com>
This commit is contained in:
parent
ed59cebcbf
commit
db22befd78
@ -41,7 +41,7 @@ build_initrd() {
|
||||
export AGENT_INIT="yes"
|
||||
# ROOTFS_BUILD_DEST is a Make variable
|
||||
# SNP will also use the SEV guest module
|
||||
if [ "${AA_KBC:-}" == "offline_sev_kbc" | "${AA_KBC:-}" == "online_sev_kbc"]; then
|
||||
if [[ "${AA_KBC:-}" == "offline_sev_kbc" || "${AA_KBC:-}" == "online_sev_kbc" ]]; then
|
||||
config_version=$(get_config_version)
|
||||
kernel_version="$(get_from_kata_deps "assets.kernel.sev.version")"
|
||||
kernel_version=${kernel_version#v}
|
||||
|
Loading…
Reference in New Issue
Block a user