Browse code

Update mkimage-yum.sh

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 <tangwj2@lenovo.com>

WENJUN TANG authored on 2017/07/24 12:53:25
Showing 1 changed files
... ...
@@ -81,13 +81,13 @@ fi
81 81
 if [[ -n "$install_groups" ]];
82 82
 then
83 83
     yum -c "$yum_config" --installroot="$target" --releasever=/ --setopt=tsflags=nodocs \
84
-        --setopt=group_package_types=mandatory -y groupinstall $install_groups
84
+        --setopt=group_package_types=mandatory -y groupinstall "$install_groups"
85 85
 fi
86 86
 
87 87
 if [[ -n "$install_packages" ]];
88 88
 then
89 89
     yum -c "$yum_config" --installroot="$target" --releasever=/ --setopt=tsflags=nodocs \
90
-        --setopt=group_package_types=mandatory -y install $install_packages
90
+        --setopt=group_package_types=mandatory -y install "$install_packages"
91 91
 fi
92 92
 
93 93
 yum -c "$yum_config" --installroot="$target" -y clean all