summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-12-22 22:21:54 +0100
committerHolger Levsen <holger@layer-acht.org>2012-12-22 22:21:54 +0100
commita9d78b296c5a5c293a52707106b78ffc0e79ad96 (patch)
tree5b41d8dbef24cba2c1cbae95f6833656c2d4cbeb /bin
parentcf48ca6bd238f9f76c85ac5809dd7b39470a680e (diff)
downloadjenkins.debian.net-a9d78b296c5a5c293a52707106b78ffc0e79ad96.tar.xz
add xfce g-i-installation jobs
Diffstat (limited to 'bin')
-rwxr-xr-xbin/g-i-installation.sh54
1 files changed, 45 insertions, 9 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh
index f453c95d..5fe29da0 100755
--- a/bin/g-i-installation.sh
+++ b/bin/g-i-installation.sh
@@ -133,8 +133,12 @@ bootstrap_system() {
*_sid_daily*)
EXTRA_APPEND="mirror/suite=sid"
;;
+ *) ;;
esac
case $JOB_NAME in
+ *debian_*xfce)
+ EXTRA_APPEND="$EXTRA_APPEND desktop=xfce"
+ ;;
*debian_*lxde)
EXTRA_APPEND="$EXTRA_APPEND desktop=lxde"
;;
@@ -144,6 +148,7 @@ bootstrap_system() {
*debian_*rescue)
EXTRA_APPEND="$EXTRA_APPEND rescue/enable=true"
;;
+ *) ;;
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
@@ -229,22 +234,52 @@ normal_action() {
# actions depending on the type of installation
#
case $NAME in
- *lxde) case $TOKEN in
- 160) do_and_report key enter
+ *xfce) case $TOKEN in
+ 200) do_and_report key enter
+ ;;
+ 210) do_and_report key alt-f2
+ ;;
+ 220) do_and_report type "iceweasel http://www.debian.org"
+ ;;
+ 230) do_and_report key enter
+ ;;
+ 300) do_and_report key alt-f2
+ ;;
+ 230) do_and_report type xterm
+ ;;
+ 320) do_and_report key enter
+ ;;
+ 350) do_and_report type "su -c poweroff"
+ ;;
+ 370) do_and_report key enter
;;
+ 380) do_and_report type r00tme
+ ;;
+ 400) do_and_report key enter
+ ;;
+ *) ;;
+ esac
+ ;;
+ *lxde) case $TOKEN in
200) do_and_report key alt-f2
;;
- 230) do_and_report type lxterminal
+ 210) do_and_report type "iceweasel http://www.debian.org"
+ ;;
+ 220) do_and_report key enter
;;
- 240) do_and_report key enter
+ 300) do_and_report key alt-f2
;;
- 250) do_and_report type "su -c poweroff"
+ 310) do_and_report type lxterminal
;;
- 270) do_and_report key enter
+ 320) do_and_report key enter
;;
- 280) do_and_report type r00tme
+ 350) do_and_report type "su -c poweroff"
;;
- 300) do_and_report key enter
+ 370) do_and_report key enter
+ ;;
+ 380) do_and_report type r00tme
+ ;;
+ 400) do_and_report key enter
;;
*) ;;
esac
@@ -381,8 +416,9 @@ save_logs() {
#
# get logs and other files from the installed system
#
- # remove set +e once the code has proven its good
+ # remove set +e & -x once the code has proven its good
set +e
+ set -x
cd $WORKSPACE
SYSTEM_MNT=/media/$NAME
sudo mkdir -p $SYSTEM_MNT