fix needed
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 21 Nov 2007 12:25:47 +0000 (12:25 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 21 Nov 2007 12:25:47 +0000 (12:25 +0000)
build.functions
build.sh

index ab03be8..e7fe37e 100644 (file)
@@ -49,12 +49,11 @@ set -x
 # Make a basic chroot at the specified location given the specified
 # configuration.
 make_chroot_from_lst() {
-    root=$1
+    root=$1; shift
     fcdistro=1; shift
-    lst=$2
 
-    packages=$(pl_getPackagesOptions2 $fcdistro $lst)
-    groups=$(pl_getGroupsOptions2 $fcdistro $lst
+    packages=$(pl_getPackagesOptions2 $fcdistro $lst"$@")
+    groups=$(pl_getGroupsOptions2 $fcdistro "$@"
 
     pl_setup_chroot $root $packages $groups
 }
index c9e8cd3..442de0c 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -51,7 +51,7 @@ echo "* myplc: Installing base filesystem"
 mkdir -p root data
 
 lst=${pldistro}-plc.lst
-make_chroot_from_lst root $pldistro ${pl_DISTRO_NAME} $lst
+make_chroot_from_lst root ${pl_DISTRO_NAME} $lst
 
 # Install configuration scripts
 echo "* myplc: Installing configuration scripts"