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
Remove java rpm from module. Moved to repo.
[vserver-reference.git]
/
build.sh
diff --git
a/build.sh
b/build.sh
index
81b5dd8
..
b9c3244
100755
(executable)
--- 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
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2004-2006 The Trustees of Princeton University
#
-# $Id$
+# $Id
: build.sh,v 1.16 2007/06/25 19:52:27 deisenst Exp
$
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
@@
-24,7
+24,7
@@
fi
export PATH
# Release and architecture to install
export PATH
# Release and architecture to install
-releasever=
2
+releasever=
4
basearch=i386
# Packages to install
basearch=i386
# Packages to install
@@
-48,6
+48,7
@@
traceroute
time
vixie-cron
wget
time
vixie-cron
wget
+which
yum
curl
gzip
yum
curl
gzip
@@
-84,14
+85,14
@@
done
set -e
# Make /vservers
set -e
# Make /vservers
-vroot=$PWD/vservers/
vserver-reference
+vroot=$PWD/vservers/
.vref/default
install -d -m 755 $vroot
install -d -m 755 $vroot
-# Install
vserver-reference system
+# Install
default reference image
for package in "${packagelist[@]}" ; do
packages="$packages -p $package"
done
for package in "${packagelist[@]}" ; do
packages="$packages -p $package"
done
-mkfedora -v -r $releasever -a $basearch $packages $vroot
+mkfedora -v -r $releasever -a $basearch
-k
$packages $vroot
# Clean /dev
rm -rf $vroot/dev
# Clean /dev
rm -rf $vroot/dev
@@
-104,7
+105,7
@@
mknod -m 644 $vroot/dev/urandom c 1 9
mknod -m 666 $vroot/dev/tty c 5 0
mknod -m 666 $vroot/dev/ptmx c 5 2
# For bash command substitution
mknod -m 666 $vroot/dev/tty c 5 0
mknod -m 666 $vroot/dev/ptmx c 5 2
# For bash command substitution
-ln -nsf ../proc/self/fd /dev/fd
+ln -nsf ../proc/self/fd
$vroot
/dev/fd
# For df and linuxconf
touch $vroot/dev/hdv1
# For TUN/TAP
# For df and linuxconf
touch $vroot/dev/hdv1
# For TUN/TAP