mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-12 05:12:37 +00:00
- no need to create `/usr/lib/systemd/systemd` link any more - install `chrony` as extra package and install extra packages in chroot rather than `debootstrap`, because `chrony` provides `time-daemon`, which under 20.04 is provided by `systemd-timesyncd`, which is required by `systemd`, and `debootstrap`'s conflict resolvement can't handle this, but `apt`'s can. Fixes: #2147 Depends-on: github.com/kata-containers/tests#3636 Signed-off-by: Jakob Naucke <jakob.naucke@ibm.com>
35 lines
1018 B
Bash
35 lines
1018 B
Bash
# This is a configuration file add extra variables to
|
|
#
|
|
# Copyright (c) 2018 Yash Jain
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
# be used by build_rootfs() from rootfs_lib.sh the variables will be
|
|
# loaded just before call the function. For more information see the
|
|
# rootfs-builder/README.md file.
|
|
|
|
OS_VERSION=${OS_VERSION:-20.04}
|
|
# This should be Ubuntu's code name, e.g. "focal" (Focal Fossa) for 20.04
|
|
OS_NAME=${OS_NAME:-"focal"}
|
|
|
|
# packages to be installed by default
|
|
PACKAGES="systemd iptables init kmod"
|
|
EXTRA_PKGS+=" chrony"
|
|
|
|
DEBOOTSTRAP=${PACKAGE_MANAGER:-"debootstrap"}
|
|
|
|
case $(uname -m) in
|
|
x86_64) ARCHITECTURE="amd64";;
|
|
ppc64le) ARCHITECTURE="ppc64el";;
|
|
aarch64) ARCHITECTURE="arm64";;
|
|
s390x) ARCHITECTURE="s390x";;
|
|
(*) die "$(uname -m) not supported "
|
|
esac
|
|
|
|
# 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=()
|
|
|
|
[ "$SECCOMP" = "yes" ] && PACKAGES+=" libseccomp2" || true
|