mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
mkimage-yum.sh: Fix install of additional packages
The mkimage-yum.sh script fails to install additional packages (passed with -p package-name), because the package names get quoted twice. Signed-off-by: Amit Bakshi <ambakshi@gmail.com>
This commit is contained in:
parent
c9aee96bfd
commit
19a3ddf8bb
1 changed files with 4 additions and 4 deletions
|
@ -43,10 +43,10 @@ while getopts ":y:p:g:t:h" opt; do
|
|||
usage
|
||||
;;
|
||||
p)
|
||||
install_packages+=("\"$OPTARG\"")
|
||||
install_packages+=("$OPTARG")
|
||||
;;
|
||||
g)
|
||||
install_groups+=("\"$OPTARG\"")
|
||||
install_groups+=("$OPTARG")
|
||||
;;
|
||||
t)
|
||||
version="$OPTARG"
|
||||
|
@ -94,13 +94,13 @@ fi
|
|||
if [[ -n "$install_groups" ]];
|
||||
then
|
||||
yum -c "$yum_config" --installroot="$target" --releasever=/ --setopt=tsflags=nodocs \
|
||||
--setopt=group_package_types=mandatory -y groupinstall "${install_groups[*]}"
|
||||
--setopt=group_package_types=mandatory -y groupinstall "${install_groups[@]}"
|
||||
fi
|
||||
|
||||
if [[ -n "$install_packages" ]];
|
||||
then
|
||||
yum -c "$yum_config" --installroot="$target" --releasever=/ --setopt=tsflags=nodocs \
|
||||
--setopt=group_package_types=mandatory -y install "${install_packages[*]}"
|
||||
--setopt=group_package_types=mandatory -y install "${install_packages[@]}"
|
||||
fi
|
||||
|
||||
yum -c "$yum_config" --installroot="$target" -y clean all
|
||||
|
|
Loading…
Add table
Reference in a new issue