mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-17 15:38:00 +00:00
kata-manager: Only check files when tarball is not passed
Only do the checking in case the tarball was not explicitly passed by the user. We have no control of what's passed and we cannot expect that all the files are going to be under /opt. Fixes: #10147 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
775f6bdc5c
commit
5fe65e9fc2
@ -803,6 +803,13 @@ install_kata()
|
||||
local from_dir
|
||||
from_dir=$(printf "%s/bin" "$kata_install_dir")
|
||||
|
||||
if [ -n "$kata_tarball" ]
|
||||
then
|
||||
info "Installing $project release from $file"
|
||||
else
|
||||
# Only do the checking in case the tarball was not explicitly passed
|
||||
# by the user. We have no control of what's passed and we cannot
|
||||
# expect that all the files are going to be under /opt.
|
||||
info "Checking file '$file'"
|
||||
|
||||
# Since we're unpacking to the root directory, perform a sanity check
|
||||
@ -813,10 +820,6 @@ install_kata()
|
||||
|
||||
[ -n "$unexpected" ] && die "File '$file' contains unexpected paths: '$unexpected'"
|
||||
|
||||
if [ -n "$kata_tarball" ]
|
||||
then
|
||||
info "Installing $project release from $file"
|
||||
else
|
||||
info "Installing $project release $version from $file"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user