mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-21 05:02:12 +00:00
Since we are introducing an agent API for interacting with guest iptables, let's ensure that our example rootfs' have iptables-save/restore installed. Fixes: #4356 Signed-off-by: Eric Ernst <eric_ernst@apple.com>
18 lines
628 B
Bash
18 lines
628 B
Bash
#!/bin/sh
|
|
# Copyright (c) 2018 Intel Corporation, 2021 IBM Corp.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
OS_NAME=centos
|
|
OS_VERSION=${OS_VERSION:-stream9}
|
|
PACKAGES="chrony iptables"
|
|
[ "$AGENT_INIT" = no ] && PACKAGES+=" systemd"
|
|
[ "$SECCOMP" = yes ] && PACKAGES+=" libseccomp"
|
|
|
|
# Container registry tag is different from metalink repo, e.g. "stream9" => "9-stream"
|
|
os_repo_version="$(sed -E "s/(stream)(.+)/\2-\1/" <<< "$OS_VERSION")"
|
|
|
|
METALINK="https://mirrors.centos.org/metalink?repo=centos-baseos-$os_repo_version&arch=\$basearch"
|
|
GPG_KEY_FILE=RPM-GPG-KEY-CentOS-Official
|
|
GPG_KEY_URL="https://centos.org/keys/$GPG_KEY_FILE"
|