From 51cc7bf0c7e5709d83d6eb5b4cae6be3b0f8f01a Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Wed, 7 Nov 2007 21:04:05 +0000 Subject: [PATCH] * using the common pl_getPackages() and pl_getGroups() functions --- build.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 63ede95..7992ebb 100755 --- a/build.sh +++ b/build.sh @@ -53,10 +53,10 @@ vref=${vrefdir}/${vrefname} install -d -m 755 ${vref} # "Parse" out the packages and groups for mkfedora -vrefpackages=$(grep "^package:.*" vserver-reference.lst | awk '{print $2}') -vrefgroups=$(grep "^group:.*" vserver-reference.lst | awk '{print $2}') options="" +vrefpackages=$(pl_getPackages base.lst) for package in ${vrefpackages} ; do options="$options -p $package"; done +vrefgroups=$(pl_getGroups base.lst) for group in ${vrefgroups} ; do options="$options -g $group"; done # Populate a minimal /dev in the reference image @@ -79,8 +79,6 @@ for systemvserver in reference-vservers/*.lst ; do install -d -m 755 ${vdir} # Clone the base vserver reference to the system vserver reference - - # OPTIMIZATION: Consider using "cp -al" in the future (cd ${vref} && find . | cpio -m -d -u -p ${vdir}) rm -f ${vdir}/var/lib/rpm/__db* -- 2.45.2