From 90adf7e12b62615ab114dd64e11410d1c110150d Mon Sep 17 00:00:00 2001
From: Mark Huang <mlhuang@cs.princeton.edu>
Date: Fri, 31 Mar 2006 21:18:10 +0000
Subject: [PATCH] - disable all services in vserver-reference image

---
 build.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/build.sh b/build.sh
index 179e9d9..1c990c4 100755
--- a/build.sh
+++ b/build.sh
@@ -5,7 +5,7 @@
 # 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.7 2006/03/29 20:26:41 mlhuang Exp $
 #
 
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
@@ -93,6 +93,9 @@ for package in "${packagelist[@]}" ; do
 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.
-- 
2.47.0