mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-29 03:54:27 +01:00
If the Clear Linux `OS_VERSION` is specified as `latest`, resolve to an actual release number. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
24 lines
598 B
Bash
24 lines
598 B
Bash
#
|
|
# Copyright (c) 2018 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
OS_NAME="Clear"
|
|
REPO_NAME="clear"
|
|
|
|
OS_VERSION=${OS_VERSION:-latest}
|
|
|
|
clr_url="https://download.clearlinux.org"
|
|
|
|
# resolve version
|
|
[ "${OS_VERSION}" = "latest" ] && OS_VERSION=$(curl -sL "${clr_url}/latest")
|
|
|
|
BASE_URL="${clr_url}/releases/${OS_VERSION}/${REPO_NAME}/${ARCH}/os/"
|
|
|
|
PACKAGES="iptables-bin libudev0-shim"
|
|
|
|
#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
|