mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-22 04:18:53 +00:00
local-build: make kernel parameters configurable
This is to make kernel parameters configurable during the secure image build by adding an environment variable SE_KERNEL_PARAMS. Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
This commit is contained in:
@@ -119,7 +119,7 @@ build_image() {
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
protimg_source_dir="${image_source_dir}${prefix}/share/kata-containers"
|
protimg_source_dir="${image_source_dir}${prefix}/share/kata-containers"
|
||||||
local kernel_params=""
|
local kernel_params="${SE_KERNEL_PARAMS:-}"
|
||||||
if ! build_secure_image "${kernel_params}" "${protimg_source_dir}" "${install_dir}"; then
|
if ! build_secure_image "${kernel_params}" "${protimg_source_dir}" "${install_dir}"; then
|
||||||
usage 1
|
usage 1
|
||||||
fi
|
fi
|
||||||
|
@@ -122,6 +122,7 @@ docker run \
|
|||||||
--env USE_CACHE="${USE_CACHE}" \
|
--env USE_CACHE="${USE_CACHE}" \
|
||||||
--env AA_KBC="${AA_KBC:-}" \
|
--env AA_KBC="${AA_KBC:-}" \
|
||||||
--env HKD_PATH="$(realpath "${HKD_PATH:-}" 2> /dev/null || true)" \
|
--env HKD_PATH="$(realpath "${HKD_PATH:-}" 2> /dev/null || true)" \
|
||||||
|
--env SE_KERNEL_PARAMS="${SE_KERNEL_PARAMS:-}" \
|
||||||
--env CROSS_BUILD="${CROSS_BUILD}" \
|
--env CROSS_BUILD="${CROSS_BUILD}" \
|
||||||
--env TARGET_ARCH="${TARGET_ARCH}" \
|
--env TARGET_ARCH="${TARGET_ARCH}" \
|
||||||
--env ARCH="${ARCH}" \
|
--env ARCH="${ARCH}" \
|
||||||
|
Reference in New Issue
Block a user