From f08319eeef45d36415586498177f7eeb6442ef5f Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Mon, 10 Apr 2006 21:09:32 +0000 Subject: [PATCH] - restore default configuration by just removing plc_config.xml and bootstrap.xml after shutting down --- build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index aaef7cb..bc44465 100755 --- a/build.sh +++ b/build.sh @@ -93,7 +93,7 @@ while read package ; do done < <(./plc-config --packages $config) # Install base system -mkfedora -v -r $releasever -a $basearch $packages $root +mkfedora -v -r $releasever -a $basearch -k $packages $root # Disable all services in reference image chroot $root sh -c "/sbin/chkconfig --list | awk '{ print \$1 }' | xargs -i /sbin/chkconfig {} off" @@ -264,9 +264,6 @@ export PLC_DATA=$PWD/$data ./host.init start RETVAL=$? -# Restore default configuration before shutting down -rm -f $data/etc/planetlab/plc_config.xml $data/etc/planetlab/configs/bootstrap.xml - # Remove ISO and USB images, which take up >100MB but only take a # couple of seconds to generate at first boot. rm -f $data/var/www/html/download/*.{iso,usb} @@ -274,4 +271,7 @@ rm -f $data/var/www/html/download/*.{iso,usb} ./host.init stop RETVAL=$(($RETVAL+$?)) +# Restore default configuration +rm -f $data/etc/planetlab/plc_config.xml $data/etc/planetlab/configs/bootstrap.xml + exit $RETVAL -- 2.47.0