From ebc34ed5380599b6221985da045c5df033313ad5 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 18 Dec 2012 13:34:15 +0100 Subject: drive rescue mode further and login into installed system --- bin/g-i-installation.sh | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh index e597e20e..0abdf9af 100755 --- a/bin/g-i-installation.sh +++ b/bin/g-i-installation.sh @@ -181,14 +181,46 @@ do_and_report() { } rescue_action() { + # boot in rescure mode case $NR in - 700) do_and_report key tab + 660) do_and_report key tab ;; - 710) do_and_report key enter + 670) do_and_report key enter + ;; + 710) do_and_report key tab + ;; + 720) do_and_report key enter + ;; + 770) do_and_report type df + ;; + 780) do_and_report key enter + ;; + 810) do_and_report type exit + ;; + 820) do_and_report key enter + ;; + 910) do_and_report key down + ;; + 920) do_and_report key enter + ;; + esac +} + +normal_action() { + # normal boot after installation + case $NR in + 710) do_and_report type jenkins + ;; + 720) do_and_report key enter + ;; + 730) do_and_report type insecure + ;; + 740) do_and_report key enter ;; esac } + monitor_system() { MODE=$1 cd $RESULTS @@ -226,6 +258,8 @@ monitor_system() { case $MODE in rescue) rescue_action ;; + normal) normal_action + ;; *) ;; esac # test if this screenshot is the same as the one 400 screenshots ago, and if so, let stop this -- cgit v1.2.3-54-g00ecf