summaryrefslogtreecommitdiff
path: root/src/core/procedures/interactive
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2010-12-17 19:19:31 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2010-12-17 19:36:53 +0100
commita773620cca0122cf9dae166636ded643dddbb53c (patch)
treee2e4d3c5d2bd334eef74176f1e2a08363166ef0c /src/core/procedures/interactive
parent20c3bc4eb1dc968cf40a35c4f4cd00a225c072f3 (diff)
centralize interactive rollback code, ask for rollback when needed when aborting interactive install
Diffstat (limited to 'src/core/procedures/interactive')
-rw-r--r--src/core/procedures/interactive11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/procedures/interactive b/src/core/procedures/interactive
index 2f90563..0223763 100644
--- a/src/core/procedures/interactive
+++ b/src/core/procedures/interactive
@@ -87,7 +87,7 @@ mainmenu()
"8")
notify "If the install finished successfully, you can now type 'reboot' to restart the system." && stop_installer ;;
*)
- ask_yesno "Abort Installation?" && stop_installer ;;
+ execute worker abort_installer;;
esac
}
@@ -188,3 +188,12 @@ worker_auto_network ()
return 1
fi
}
+
+worker_abort_installer ()
+{
+ ret=0
+ ask_yesno "Abort Installation?" || return
+ maybe_interactive_rollback_filesystems || ret=$?
+ stop_installer || ret=$?
+ return $ret
+}