git://git.onelab.eu
/
vserver-reference.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- chroot may not be in a regular user's PATH
[vserver-reference.git]
/
vserver-reference.init
diff --git
a/vserver-reference.init
b/vserver-reference.init
index
6033307
..
cb239ec
100755
(executable)
--- a/
vserver-reference.init
+++ b/
vserver-reference.init
@@
-7,7
+7,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2004-2005 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2004-2005 The Trustees of Princeton University
#
-# $Id: vserver-reference.init,v 1.
8 2005/03/31 22:34:42
mlhuang Exp $
+# $Id: vserver-reference.init,v 1.
10 2005/09/01 17:17:14
mlhuang Exp $
#
YUM_CONF="http://www.planet-lab.org/PlanetLabConf/v3-yum.conf"
#
YUM_CONF="http://www.planet-lab.org/PlanetLabConf/v3-yum.conf"
@@
-48,7
+48,7
@@
mkdir -p $VROOT/proc
mount -t proc none $VROOT/proc
# Clean up before exiting if anything goes wrong
mount -t proc none $VROOT/proc
# Clean up before exiting if anything goes wrong
-trap "umount $VROOT/proc ; umount $VROOT/dev/pts" ERR
+trap "umount $VROOT/proc ; umount $VROOT/dev/pts
; exit 255
" ERR
# Create a dummy /etc/fstab in reference image
mkdir -p $VROOT/etc
# Create a dummy /etc/fstab in reference image
mkdir -p $VROOT/etc
@@
-102,7
+102,7
@@
umount $VROOT/dev/pts
MAKEDEV
# Disable all services in reference image
MAKEDEV
# Disable all services in reference image
-chroot $VROOT /bin/sh -c "chkconfig --list | awk '{ print \$1 }' | xargs -i chkconfig {} off"
+
/usr/sbin/
chroot $VROOT /bin/sh -c "chkconfig --list | awk '{ print \$1 }' | xargs -i chkconfig {} off"
# Clean up
umount $VROOT/proc
# Clean up
umount $VROOT/proc