From 997229a13ad6e9a61ceecb753a4d3a2f85403c2a Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 9 Oct 2009 13:40:34 +0000 Subject: [PATCH] can yum install groups (use +++ for space) in bootstrapfs and vserver-reference --- README-pkgsfiles.txt | 8 ++++---- vbuild-init-vserver.sh | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README-pkgsfiles.txt b/README-pkgsfiles.txt index 0181eac6..0ff20f2d 100644 --- a/README-pkgsfiles.txt +++ b/README-pkgsfiles.txt @@ -8,7 +8,7 @@ package+f9: p5 p6 # to exclude packages package-f9: p2 p3 -# same for groups -# NOTE: white spaces are not supported any more for group names -# plc_config_devel.xml used to mention standard group names with -# spaces, but we do not use them anymore +# same for groups, except that you need to replace any white-space in +# the groupname with +++, like in +group: X+++Window+++System +group: GNOME+++Desktop+++Environment diff --git a/vbuild-init-vserver.sh b/vbuild-init-vserver.sh index 8da50467..fa1c4833 100755 --- a/vbuild-init-vserver.sh +++ b/vbuild-init-vserver.sh @@ -238,7 +238,10 @@ function devel_or_vtest_tools () { groups=$(pl_getGroups -a $vserver_arch $fcdistro $pldistro $pkgsfile) [ "$pkg_method" = yum ] && [ -n "$packages" ] && $personality vserver $vserver exec yum -y install $packages - [ "$pkg_method" = yum ] && [ -n "$groups" ] && $personality vserver $vserver exec yum -y groupinstall $groups + [ "$pkg_method" = yum ] && for group_plus in $groups; do + group=$(echo $group_plus | sed -e "s,+++, ,g") + $personality vserver $vserver exec yum -y groupinstall "$group" + done [ "$pkg_method" = debootstrap ] && $personality vserver $vserver exec apt-get update [ "$pkg_method" = debootstrap ] && for package in $packages ; do -- 2.43.0