From 65d3f2a4fdacb0e4a6a56537debf75a71974b3c9 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 23 Oct 2014 17:49:50 +0200 Subject: g-i-installation: move save_logs() call into cleanup_up() to also (try to) gather logs when the installation hangs --- bin/g-i-installation.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2