From eb4e6f9f8946cb16bc7ed0c0fe94c61a1e7b7d6b Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 8 Dec 2012 19:16:14 +0100 Subject: fix wheezy-lxde job (which failed due to empty -cdrom param for qemu) and further cleanup of configuration --- bin/cd_tester.sh | 20 +++++++++++--------- job-cfg/cd-test.yaml | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/bin/cd_tester.sh b/bin/cd_tester.sh index b230b9ac..4668352a 100755 --- a/bin/cd_tester.sh +++ b/bin/cd_tester.sh @@ -102,10 +102,14 @@ bootstrap() { qemu-img create -f raw $NAME.raw ${DISKSIZE_IN_GB}G echo "Doing cd tests for $NAME now." # qemu related variables (incl kernel+initrd) - QEMU_OPTS="-cdrom $IMAGE -drive file=$NAME.raw,index=0,media=disk,cache=writeback -m $RAMSIZE" + if [ -n "IMAGE" ] ; then + QEMU_OPTS="-cdrom $IMAGE -boot d" + QEMU_KERNEL="--kernel $IMAGE_MNT/install.amd/vmlinuz --initrd $IMAGE_MNT/install.amd/gtk/initrd.gz" + 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_OPTS="$QEMU_OPTS -display vnc=$DISPLAY" - QEMU_KERNEL="--kernel $IMAGE_MNT/install.amd/vmlinuz --initrd $IMAGE_MNT/install.amd/gtk/initrd.gz" - QEMU_BOOT="-boot d" QEMU_WEBSERVER=http://10.0.2.2/ # preseeding related variables PRESEED_PATH=d-i-preseed-cfgs @@ -115,27 +119,25 @@ bootstrap() { INST_VIDEO="video=vesa:ywrap,mtrr vga=788" case $NAME in wheezy-debian-edu-workstation) - APPEND="auto=true priority=critical $INST_LOCALE $INST_KEYMAP $PRESEED_URL $INST_VIDEO -- quiet" + EXTRA_APPEND="" ;; squeeze-test-debian-edu-standalone) INST_KEYMAP="console-keymaps-at/$INST_KEYMAP" - APPEND="auto=true priority=critical $INST_LOCALE $INST_KEYMAP $PRESEED_URL $INST_VIDEO -- quiet" + EXTRA_APPEND="" ;; wheezy-lxde) - QEMU_BOOT="-boot c" - QEMU_KERNEL="--kernel $KERNEL --initrd $INITRD" - APPEND="auto=true priority=critical desktop=lxde $INST_LOCALE $INST_KEYMAP $PRESEED_URL $INST_VIDEO" + EXTRA_APPEND="desktop=lxde" ;; *) echo "unsupported distro." exit 1 ;; esac + APPEND="auto=true priority=critical $EXTRA_APPEND $INST_LOCALE $INST_KEYMAP $PRESEED_URL $INST_VIDEO -- quiet" show_preseed $(hostname -f)/$PRESEED_PATH/${NAME}-preseed.cfg echo echo "Starting QEMU_ now:" (sudo qemu-system-x86_64 \ $QEMU_OPTS \ - $QEMU_BOOT \ $QEMU_KERNEL \ --append "$APPEND" && touch $RESULTS/qemu_exit_0 ) & } diff --git a/job-cfg/cd-test.yaml b/job-cfg/cd-test.yaml index f3c2a240..25699c00 100644 --- a/job-cfg/cd-test.yaml +++ b/job-cfg/cd-test.yaml @@ -65,5 +65,5 @@ my_shell: '/srv/jenkins/bin/cd_tester.sh 3 wheezy-lxde 10 http://d-i.debian.org/daily-images/amd64/daily/netboot/gtk/debian-installer/amd64/' my_description: 'Do a fully automated installation of Debian installing the LXDE desktop - via d-i preseeding (with this preseed.cfg) using netboot gtk.' my_timed: '42 17 * * *' - my_recipients: 'jenkins+debian-boot holger@layer-acht.org' + my_recipients: 'holger@layer-acht.org' # FIXME readd jenkins+debian-boot once we made this more stable -- cgit v1.2.3-70-g09d2