mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 08:17:37 +00:00
rootfs: Add extra packages to summary file
Added the extra packages the user requested to the summary file as previously only the default packages were listed. Fixes #92. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
49e3f814bc
commit
3151f35c86
@ -145,17 +145,19 @@ create_summary_file()
|
|||||||
|
|
||||||
local -r now=$(date '+%Y-%m-%dT%T.%N%zZ')
|
local -r now=$(date '+%Y-%m-%dT%T.%N%zZ')
|
||||||
|
|
||||||
# sanitise package list
|
# sanitise package lists
|
||||||
PACKAGES=$(echo "$PACKAGES"|tr ' ' '\n'|sort -u|tr '\n' ' ')
|
PACKAGES=$(echo "$PACKAGES"|tr ' ' '\n'|sort -u|tr '\n' ' ')
|
||||||
|
EXTRA_PKGS=$(echo "$EXTRA_PKGS"|tr ' ' '\n'|sort -u|tr '\n' ' ')
|
||||||
|
|
||||||
local -r packages=$(for pkg in ${PACKAGES}; do echo " - \"${pkg}\""; done)
|
local -r packages=$(for pkg in ${PACKAGES}; do echo " - \"${pkg}\""; done)
|
||||||
|
local -r extra=$(for pkg in ${EXTRA_PKGS}; do echo " - \"${pkg}\""; done)
|
||||||
|
|
||||||
mkdir -p "$dir"
|
mkdir -p "$dir"
|
||||||
|
|
||||||
# Semantic version of the summary file format.
|
# Semantic version of the summary file format.
|
||||||
#
|
#
|
||||||
# XXX: Increment every time the format of the summary file changes!
|
# XXX: Increment every time the format of the summary file changes!
|
||||||
local -r format_version="0.0.1"
|
local -r format_version="0.0.2"
|
||||||
|
|
||||||
local -r osbuilder_url="https://github.com/kata-containers/osbuilder"
|
local -r osbuilder_url="https://github.com/kata-containers/osbuilder"
|
||||||
|
|
||||||
@ -177,7 +179,10 @@ create_summary_file()
|
|||||||
name: "${OS_NAME}"
|
name: "${OS_NAME}"
|
||||||
version: "${OS_VERSION}"
|
version: "${OS_VERSION}"
|
||||||
packages:
|
packages:
|
||||||
|
default:
|
||||||
${packages}
|
${packages}
|
||||||
|
extra:
|
||||||
|
${extra}
|
||||||
agent:
|
agent:
|
||||||
url: "https://${GO_AGENT_PKG}"
|
url: "https://${GO_AGENT_PKG}"
|
||||||
name: "${AGENT_BIN}"
|
name: "${AGENT_BIN}"
|
||||||
|
Loading…
Reference in New Issue
Block a user