From d5b5cfdfd64d452a6ad369ca0cb8cf2c96e1d47a Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Thu, 30 Aug 2007 20:10:21 +0000 Subject: [PATCH] revert to previous head, as the modular build changes need to go onto the (temporary) modular_build branch first --- support-files/buildnode.sh | 46 +++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/support-files/buildnode.sh b/support-files/buildnode.sh index 24abb00..3a36962 100755 --- a/support-files/buildnode.sh +++ b/support-files/buildnode.sh @@ -24,11 +24,33 @@ fi export PATH -. build.common +# Release and architecture to install +releasever=4 +basearch=i386 -pl_process_fedora_options $@ -shiftcount=$? -shift $shiftcount +usage() +{ + echo "Usage: build.sh [OPTION]..." + echo " -r release Fedora release number (default: $releasever)" + echo " -a arch Fedora architecture (default: $basearch)" + echo " -h This message" + exit 1 +} + +# Get options +while getopts "r:a:h" opt ; do + case $opt in + r) + releasever=$OPTARG + ;; + a) + basearch=$OPTARG + ;; + h|*) + usage + ;; + esac +done # Do not tolerate errors set -e @@ -51,21 +73,9 @@ export PL_BOOTCD=1 # because groupinstall does not honor Requires(pre) dependencies # properly, most %pre scripts require coreutils to be installed first, # and some of our %post scripts require python. +mkfedora -v -r $releasever -a $basearch -k -p udev -p coreutils -p python -g PlanetLab $VROOT -packagelist=( -udev -coreutils -python -) -# vserver-reference packages used for reference image -for package in "${packagelist[@]}" ; do - packages="$packages -p $package" -done - -# Populate VROOT with the files for the PlanetLab-Bootstrap content -pl_setup_chroot $VROOT -k $packages -g PlanetLab - -# Disable additional unnecessary services +# Disable unnecessary services echo "* Disabling unnecessary services" for service in netfs rawdevices cpuspeed smartd ; do if [ -x $VROOT/etc/init.d/$service ] ; then -- 2.43.0