mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-08 08:54:29 +01:00
If the rootfs is built with SECCOMP=yes environment variable then include libseccomp package inside the rootfs image. Else do not include it. Fixes: #155 Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
30 lines
888 B
Bash
30 lines
888 B
Bash
#
|
|
# Copyright (C) 2018 Huawei Technologies Co., Ltd
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
OS_NAME="EulerOS"
|
|
|
|
OS_VERSION=${OS_VERSION:-2.2}
|
|
|
|
BASE_URL="http://developer.huawei.com/ict/site-euleros/euleros/repo/yum/${OS_VERSION}/os/${ARCH}/"
|
|
|
|
GPG_KEY_FILE="RPM-GPG-KEY-EulerOS"
|
|
|
|
PACKAGES="iptables"
|
|
|
|
#Optional packages:
|
|
# systemd: An init system that will start kata-agent if kata-agent
|
|
# itself is not configured as init process.
|
|
[ "$AGENT_INIT" == "no" ] && PACKAGES+=" systemd" || true
|
|
|
|
# Init process must be one of {systemd,kata-agent}
|
|
INIT_PROCESS=systemd
|
|
# List of zero or more architectures to exclude from build,
|
|
# as reported by `uname -m`
|
|
ARCH_EXCLUDE_LIST=()
|
|
# Allow the build to fail without generating an error.
|
|
# For more info see: https://github.com/kata-containers/osbuilder/issues/190
|
|
BUILD_CAN_FAIL=1
|
|
|
|
[ "$SECCOMP" = "yes" ] && PACKAGES+=" libseccomp" || true
|