# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2004-2006 The Trustees of Princeton University
#
-# $Id: build.sh,v 1.6 2006/03/29 19:19:55 mlhuang Exp $
+# $Id: build.sh,v 1.8 2006/03/31 21:18:10 mlhuang Exp $
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
PATH=$PATH:../build
srcdir=..
else
- echo "Error: Could not find sources in either . or .."
+ echo "Error: Could not find $(cd .. && pwd -P)/build/"
exit 1
fi
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.