Commit 7e3d477f authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Merge branch 'master' of git-public.flux.utah.edu:/flux/git/emulab-devel

parents 1d6c5823 488f320e
......@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2004, 2005 University of Utah and the Flux Group.
# Copyright (c) 2004-2011 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -200,7 +200,7 @@ sub whacksome($@) {
warn "WhOL: could not send WhOL packets\n";
$failed++;
} else {
print STDERR "Whacked ", @nodelist, "\n";
print STDERR "Whacked ", join(' ', @nodelist), "\n";
}
}
......
......@@ -1196,6 +1196,9 @@ sub SetupOpsNode($)
print RC "inetd_enable=\"YES\"\n";
print RC "sendmail_enable=\"YES\"\n";
if ($emulabconfig{"CONFIG_MAILMAN"}) {
print RC "mailman_enable=\"YES\"\n";
}
print RC "sshd_enable=\"YES\"\n";
print RC "ntpdate_enable=\"YES\"\n";
......@@ -1617,7 +1620,10 @@ sub SetupBossNode()
# Disable TSO. It causes horrific xmit throughput with divert sockets.
# See: http://www.freebsd.org/cgi/query-pr.cgi?pr=121257
#
my $tso = "-tso";
my $tso = "";
if ($FBSD_VERSION > 6) {
$tso = "-tso";
}
print RC "network_interfaces=\"$outer_controlif\"\n";
print RC "ifconfig_${outer_controlif}=".
......
......@@ -93,7 +93,7 @@ find_disks() {
_DISKS=""
for d in `sed -n 's/^\([a-z]*[0-9][0-9]*\): [0-9][0-9]*MB/\1/p' /var/run/dmesg.boot`; do
case $d in
ad*|da*|ar*|aacd*) _DISKS="$_DISKS $d"
ad*|da*|ar*|aacd*|mfid*) _DISKS="$_DISKS $d"
esac
done
......@@ -145,6 +145,16 @@ loadone() {
echo "Loading image #$_NUM"
# Parse dem args
ADDR=""
SERVER=""
PART=""
PARTOS=""
DISK=""
ZFILL=""
ACPI=""
ASF=""
MBRVERS=""
PREPARE=""
for parm in $_LOADINFO; do
case $parm in
ADDR=*|\
......@@ -263,7 +273,7 @@ loadone() {
return 1
fi
imagefile="$ADDR"
else
else
PORT=`echo $ADDR | awk -F: '{ printf $2 }'`
MCAST=`echo $ADDR | awk -F: '{ printf $1 }'`
if [ -e $BOOTDIR/myip ]; then
......
# PROVIDE: cdroot
# BEFORE: disks netif
# BEFORE: disks
# KEYWORD: FreeBSD
#
......@@ -70,8 +70,9 @@ mkunionfs() {
# better be >= 6.3
# no, I don't know sed or awk
major=`uname -r | sed -e 's/\..*$//`
minor=`uname -r | sed -e 's/^[0-9]\.//' | sed -e 's/[^0-9]*$//'`
major=`uname -r | sed -e 's/\..*$//'`
# I DO know sed
minor=`uname -r | sed -e 's/^[0-9]\.\([0-9][0-9]*\).*/\1/'`
if [ $major -lt 6 -o $major -eq 6 -a $minor -lt 3 ]; then
echo -n "FreeBSD version ${major}.${minor} did not have a"
......@@ -102,7 +103,7 @@ mkunionfs() {
mkdir ${bufdir}/${mntpt}
echo "Generating ${mntpt} via unionfs"
# -o copymode=transparent \
mount_unionfs -o copymode=transparent \
mount_unionfs -o noatime -o copymode=transparent \
${bufdir}/${mntpt} $mntpt
chkerr $? "mount_unionfs ${bufdir}/${mntpt} $mntpt"
done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment