X-Git-Url: http://git.onelab.eu/?p=sliceimage.git;a=blobdiff_plain;f=build.sh;h=80b3400381ddb01dd47897e24f40cec9c182f192;hp=58f8bcbaa25c22e94870cf2e7036a504c601e753;hb=c9f6863aedfca503474371136e412dca8d06150f;hpb=3c4acaae7d85ef51ffe2d0a861bc456cf212c3ab diff --git a/build.sh b/build.sh index 58f8bcb..80b3400 100755 --- a/build.sh +++ b/build.sh @@ -5,7 +5,7 @@ # Mark Huang # Copyright (C) 2004-2006 The Trustees of Princeton University # -# $Id: build.sh,v 1.4 2006/03/21 14:57:29 mlhuang Exp $ +# $Id: build.sh,v 1.5 2006/03/29 17:08:45 mlhuang Exp $ # PATH=/sbin:/bin:/usr/sbin:/usr/bin @@ -27,6 +27,35 @@ export PATH releasever=2 basearch=i386 +# Packages to install +packagelist=( +bash +coreutils +iputils +kernel-vserver +bzip2 +crontabs +diffutils +logrotate +openssh-clients +passwd +rsh +rsync +sudo +tcpdump +telnet +traceroute +time +vixie-cron +wget +yum +curl +gzip +perl +python +tar +) + usage() { echo "Usage: build.sh [OPTION]..." @@ -56,9 +85,14 @@ vroot=$PWD/vservers/vserver-reference install -d -m 755 $vroot # Install vserver-reference system -mkfedora -v -r $releasever -a $basearch -g VServer $vroot +for package in "${packagelist[@]}" ; do + packages="$packages -p $package" +done +mkfedora -v -r $releasever -a $basearch $packages $vroot # This tells the Boot Manager that it is okay to update # /etc/resolv.conf and /etc/hosts whenever the network configuration # changes. Users are free to delete this file. touch $vroot/etc/AUTO_UPDATE_NET_FILES + +exit 0