diff options
author | Holger Levsen <holger@layer-acht.org> | 2012-12-18 13:34:15 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2012-12-18 13:34:15 +0100 |
commit | ebc34ed5380599b6221985da045c5df033313ad5 (patch) | |
tree | 5abd186c807f3cc2edd7d6f28b928be15c85236a | |
parent | 00406b5b31e64ab0e03f1e16a9c2f2c9d4c3bc7d (diff) | |
download | jenkins.debian.net-ebc34ed5380599b6221985da045c5df033313ad5.tar.xz |
drive rescue mode further and login into installed system
-rwxr-xr-x | bin/g-i-installation.sh | 38 |
1 files 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 |