X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=build_devel.sh;h=1f755ec6cb478530b35379032e8045f6984baab3;hb=391310e122de0536c08f62bd46acd3b3b7b13964;hp=1005bdee3f9c4758283606b8bf851f24198955c8;hpb=5beafd1fab624c36f81972588da3463a416a8a00;p=myplc.git diff --git a/build_devel.sh b/build_devel.sh index 1005bde..1f755ec 100755 --- a/build_devel.sh +++ b/build_devel.sh @@ -13,12 +13,15 @@ # devel/data/root (root's home dir) # # Mark Huang -# Marc E. Fiuczynski -# Copyright (C) 2006-2007 The Trustees of Princeton University +# Copyright (C) 2006 The Trustees of Princeton University # -# $Id: build_devel.sh,v 1.11 2007/08/31 02:33:04 mef Exp $ +# $Id: build_devel.sh 1078 2007-11-15 13:38:27Z thierry $ # +echo "$0" not supported anymore +echo "need to figure a way to handle space in group names in .lst files" +exit 1 + . build.functions # These directories are allowed to grow to unspecified size, so they @@ -38,7 +41,8 @@ pl_fixdirs devel/root "${datadirs[@]}" echo "* myplc-devel: Installing base filesystem" mkdir -p devel/root -make_chroot devel/root plc_devel_config.xml +# xxx need be pldistro & fcdistro dependant +make_chroot_from_lst devel/root planetlab-devel.lst # Install configuration file echo "* myplc-devel: Installing configuration file" @@ -65,9 +69,11 @@ echo "* myplc-devel: Adding build user" uid=${SUDO_UID:-2000} gid=${SUDO_GID:-2000} if ! grep -q "Automated Build" devel/root/etc/passwd ; then - chroot devel/root sh -c "groupadd -o -g $gid build; \ -useradd -o -c 'Automated Build' -u $uid -g $gid -n -d /data/build -M -s /bin/bash build; \ -exit 0" + chroot devel/root <