Commit a911c885 authored by Holger Levsen's avatar Holger Levsen

g-i-installation: first save logs, then remove lvm

parent 1cfc67c8
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment