summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2013-01-09 22:33:24 +0100
committerHolger Levsen <holger@layer-acht.org>2013-01-09 22:33:24 +0100
commite588be00e140f95fe4f93a27b1de3a54e82912f5 (patch)
treea276b8048e332f6de092179a6406561c7e11edc7 /bin
parent6a0a739ec453a21bac16ef25a8f1f86731bf9003 (diff)
downloadjenkins.debian.net-e588be00e140f95fe4f93a27b1de3a54e82912f5.tar.xz
g-i: use 10.0.2.1 for the host always
Diffstat (limited to 'bin')
-rwxr-xr-xbin/g-i-installation.sh12
1 files changed, 5 insertions, 7 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh
index 205877cb..f02a57fe 100755
--- a/bin/g-i-installation.sh
+++ b/bin/g-i-installation.sh
@@ -130,8 +130,8 @@ bootstrap_system() {
else
QEMU_KERNEL="--kernel $KERNEL --initrd $INITRD"
fi
- QEMU_OPTS="$QEMU_OPTS -drive file=$NAME.raw,index=0,media=disk,cache=writeback -m $RAMSIZE"
- QEMU_WEBSERVER=http://10.0.2.2/
+ QEMU_OPTS="$QEMU_OPTS -drive file=$NAME.raw,index=0,media=disk,cache=writeback -m $RAMSIZE -net nic,vlan=0 -net user,vlan=0,host=10.0.2.1,dhcpstart=10.0.2.2,dns=10.0.2.254"
+ QEMU_WEBSERVER=http://10.0.2.1/
# preseeding related variables
PRESEED_PATH=d-i-preseed-cfgs
PRESEED_URL="url=$QEMU_WEBSERVER/$PRESEED_PATH/${NAME}_preseed.cfg"
@@ -162,8 +162,7 @@ bootstrap_system() {
EXTRA_APPEND="$EXTRA_APPEND rescue/enable=true"
;;
debian-edu*_combi-server)
- QEMU_OPTS="$QEMU_OPTS -net nic,vlan=0 -net user,vlan=0,host=10.0.2.1,dhcpstart=10.0.2.2,dns=10.0.2.254 -net nic,vlan=1 -net user,vlan=1"
- QEMU_WEBSERVER=http://10.0.2.1/
+ QEMU_OPTS="$QEMU_OPTS -net nic,vlan=1 -net user,vlan=1"
EXTRA_APPEND="$EXTRA_APPEND interface=eth0"
;;
*) ;;
@@ -191,7 +190,7 @@ boot_system() {
echo "Booting system installed with g-i installation test for $NAME."
# qemu related variables (incl kernel+initrd) - display first, as we grep for this in the process list
QEMU_OPTS="-display vnc=$DISPLAY -no-shutdown"
- QEMU_OPTS="$QEMU_OPTS -drive file=$NAME.raw,index=0,media=disk,cache=writeback -m $RAMSIZE"
+ QEMU_OPTS="$QEMU_OPTS -drive file=$NAME.raw,index=0,media=disk,cache=writeback -m $RAMSIZE -net nic,vlan=0 -net user,vlan=0,host=10.0.2.1,dhcpstart=10.0.2.2,dns=10.0.2.254"
echo "Checking $NAME.raw:"
FILE=$(file $NAME.raw)
if [ $(echo $FILE | grep "x86 boot sector" | wc -l) -eq 0 ] ; then
@@ -200,7 +199,7 @@ boot_system() {
fi
case $NAME in
debian-edu*_combi-server)
- QEMU_OPTS="$QEMU_OPTS -net nic,vlan=0 -net user,vlan=0,host=10.0.2.1,dhcpstart=10.0.2.2,dns=10.0.2.254 -net nic,vlan=1 -net user,vlan=1"
+ QEMU_OPTS="$QEMU_OPTS -net nic,vlan=1 -net user,vlan=1"
;;
*) ;;
esac
@@ -490,7 +489,6 @@ monitor_system() {
sleep 4
echo "Taking screenshots every 2 seconds now, until qemu ends for whatever reasons or 6h have passed or if the test seems to hang."
echo
- set -x
let MAX_RUNS=NR+10800
while [ $NR -lt $MAX_RUNS ] ; do
#