mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-23 09:14:27 +01:00
This patch introduces a bash library (scripts/lib.sh) that concentrates common functions. This also enhances future additions of other OSes, making it more simple. Also, new variables were introduced in each distro config.sh in order to parameterise the creation of package manager config (dnf/yum, in this case). A fix to the resulting rootfs directory name (include OS name) is also fixed in this patch. Fixes #39 Fixes #34 Signed-off-by: Erick Cardona <erick.cardona.ruiz@intel.com>
15 lines
405 B
Bash
15 lines
405 B
Bash
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
|