# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2004-2006 The Trustees of Princeton University
#
-# $Id: build.sh,v 1.5 2006/03/29 17:08:45 mlhuang Exp $
+# $Id: build.sh,v 1.7 2006/03/29 20:26:41 mlhuang Exp $
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
esac
done
+# Do not tolerate errors
+set -e
+
# Make /vservers
vroot=$PWD/vservers/vserver-reference
install -d -m 755 $vroot
done
mkfedora -v -r $releasever -a $basearch $packages $vroot
+# Disable all services in reference image
+chroot $vroot sh -c "/sbin/chkconfig --list | awk '{ print \$1 }' | xargs -i /sbin/chkconfig {} off"
+
# 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.