summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-23 17:49:50 +0200
committerHolger Levsen <holger@layer-acht.org>2014-10-23 17:49:50 +0200
commit65d3f2a4fdacb0e4a6a56537debf75a71974b3c9 (patch)
treecf5b2a1ba5192c88cd3c60a41dc16126d8ac9fab /bin
parentdbcf5a3c9c821a5fe108efa8fd342d08a43d9cfe (diff)
downloadjenkins.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-xbin/g-i-installation.sh10
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