From f8d59b968b64f10c128ba32c819743f9f943dce2 Mon Sep 17 00:00:00 2001 From: WENJUN TANG Date: Mon, 24 Jul 2017 11:53:25 +0800 Subject: [PATCH] Update mkimage-yum.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If you want to makeimage using the group "Compute Node" and so on, you must add “ ” to include the $install_groups, or it will format the text as below: yum -c /etc/yum.conf --installroot=/tmp/makeimage.sh.zOLs8y --releasever=/ --setopt=tsflags=nodocs --setopt=group_package_types=mandatory -y groupinstall Compute Node That's absolutely incorrect. Change-Id: I8b6b09f215aabd6b1f76c9365ba96c68722c47fd Signed-off-by: dodia Upstream-commit: fa900bd30a0881772b8964ee4d91d791af5b13c8 Component: engine --- components/engine/contrib/mkimage-yum.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/engine/contrib/mkimage-yum.sh b/components/engine/contrib/mkimage-yum.sh index 29da170480..901280451b 100755 --- a/components/engine/contrib/mkimage-yum.sh +++ b/components/engine/contrib/mkimage-yum.sh @@ -81,13 +81,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