mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 00:08:11 +00:00
Use component name as folder name
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
fe02351c3a
commit
ce9477966d
@ -93,7 +93,7 @@ function add_distro() {
|
|||||||
|
|
||||||
local name="${component}-${os}-${arch}"
|
local name="${component}-${os}-${arch}"
|
||||||
|
|
||||||
local scratch_dir="${KITMAKER_SCRATCH}/${name}"
|
local scratch_dir="${KITMAKER_SCRATCH}/${name}/${component}"
|
||||||
local packages_dir="${scratch_dir}/.packages"
|
local packages_dir="${scratch_dir}/.packages"
|
||||||
|
|
||||||
mkdir -p "${packages_dir}"
|
mkdir -p "${packages_dir}"
|
||||||
@ -113,10 +113,10 @@ function create_archive() {
|
|||||||
local name="${component}-${os}-${arch}"
|
local name="${component}-${os}-${arch}"
|
||||||
local archive="${KITMAKER_DIR}/${name}-${version}.tar.gz"
|
local archive="${KITMAKER_DIR}/${name}-${version}.tar.gz"
|
||||||
|
|
||||||
local scratch_dir="${KITMAKER_SCRATCH}/${name}"
|
local scratch_dir="${KITMAKER_SCRATCH}/${name}/${component}"
|
||||||
local packages_dir="${scratch_dir}/.packages/"
|
local packages_dir="${scratch_dir}/.packages/"
|
||||||
|
|
||||||
tar zcvf "${archive}" -C "${scratch_dir}/.." "${name}"
|
tar zcvf "${archive}" -C "${scratch_dir}/.." "${component}"
|
||||||
echo "Created: ${archive}"
|
echo "Created: ${archive}"
|
||||||
ls -l "${archive}"
|
ls -l "${archive}"
|
||||||
echo "With contents:"
|
echo "With contents:"
|
||||||
|
Loading…
Reference in New Issue
Block a user