From 9a1a09adf4aec7e631d52ee28d921fffa2832c01 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 28 Apr 2014 22:26:54 +0200 Subject: g-i: properly deal (specially) with Debian Edu jobs which use distros called .*-test --- bin/g-i-installation.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh index 3796db94..189b35c3 100755 --- a/bin/g-i-installation.sh +++ b/bin/g-i-installation.sh @@ -323,6 +323,10 @@ post_install_boot() { # debian-edu installations differ too much, login individually *) ;; esac + # Debian Edu -test images usually show a screen with known problems + # search for EDUTESTMODE in the code to understand how the next 2 lines are used + EDUTESTMODE=false + [[ "$NAME" =~ ^debian-edu_.*-test.*$ ]] && EDUTESTMODE=true # # actions depending on the type of installation # @@ -540,9 +544,9 @@ post_install_boot() { ;; debian-edu*minimal) case $TOKEN in # debian-edu*minimal installations result in text mode, thus needing an extra tab - 0030) do_and_report key tab + 0030) $EDUTESTMODE && do_and_report key tab ;; - 0040) do_and_report key enter + 0040) $EDUTESTMODE && do_and_report key enter ;; 0050) do_and_report type root ;; @@ -581,9 +585,9 @@ post_install_boot() { ;; debian-edu*-server) case $TOKEN in # debian-edu*minimal installations result in text mode, thus needing an extra tab - 0500) do_and_report key enter # dummy keypress + 0500) $EDUTESTMODE && do_and_report key enter # dummy keypress ;; - 0900) do_and_report key enter # dummy keypress + 0900) $EDUTESTMODE && do_and_report key enter # dummy keypress ;; 1100) do_and_report key tab ;; @@ -680,7 +684,7 @@ post_install_boot() { ;; debian-edu*workstation) case $TOKEN in # debian-edu installations report error found during installation, go forward - 0100) do_and_report key enter + 0100) $EDUTESTMODE && do_and_report key enter ;; 0110) do_and_report type jenkins ;; @@ -695,7 +699,7 @@ post_install_boot() { ;; debian-edu*standalone*) case $TOKEN in # debian-edu installations report error found during installation, go forward - 0100) do_and_report key enter + 0100) $EDUTESTMODE && do_and_report key enter ;; 0110) do_and_report type jenkins ;; -- cgit v1.2.3-70-g09d2