From a911c88594ed54bc616f61bbfa6975c0165cd0ca Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 23 Oct 2014 22:06:54 +0200 Subject: g-i-installation: first save logs, then remove lvm --- bin/g-i-installation.sh | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'bin') diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh index c175a6ff..ffd360cb 100755 --- a/bin/g-i-installation.sh +++ b/bin/g-i-installation.sh @@ -92,6 +92,21 @@ cleanup_all() { # sudo kill -9 $(ps fax | grep [q]emu-system | grep "vnc=$DISPLAY " 2>/dev/null | awk '{print $1}') || true sleep 0.3s + # + # save logs if there are any + # + case $NAME in + *_rescue*) ;; + *) if [ $NR -gt 200 ] ; then + save_logs + else + echo "Not trying to get logs." + fi + ;; + esac + # + # remove lvm volume + # sudo lvremove -f $LV rm -f $QEMU_LAUNCHER # @@ -119,18 +134,6 @@ cleanup_all() { rm $i done fi - # - # save logs if there are any - # - case $NAME in - *_rescue*) ;; - *) if [ $NR -gt 200 ] ; then - save_logs - else - echo "Not trying to get logs." - fi - ;; - esac } show_preseed() { -- cgit v1.2.3-70-g09d2