diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-10-23 17:49:50 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-10-23 17:49:50 +0200 |
commit | 65d3f2a4fdacb0e4a6a56537debf75a71974b3c9 (patch) | |
tree | cf5b2a1ba5192c88cd3c60a41dc16126d8ac9fab /bin | |
parent | dbcf5a3c9c821a5fe108efa8fd342d08a43d9cfe (diff) | |
download | jenkins.debian.net-65d3f2a4fdacb0e4a6a56537debf75a71974b3c9.tar.xz |
g-i-installation: move save_logs() call into cleanup_up() to also (try to) gather logs when the installation hangs
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/g-i-installation.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh index 5bfd912c..0dcfabfa 100755 --- a/bin/g-i-installation.sh +++ b/bin/g-i-installation.sh @@ -114,7 +114,14 @@ cleanup_all() { rm $i done fi - + # + # save logs if there are any + # + case $NAME in + *_rescue*) ;; + *) save_logs + ;; + esac } show_preseed() { @@ -1142,7 +1149,6 @@ case $NAME in boot_system let START_TRIGGER=NR+500 monitor_system post_install $START_TRIGGER - save_logs ;; esac cleanup_all |