summaryrefslogtreecommitdiff
path: root/src/core/procedures/base
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-12-07 13:07:02 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-12-07 13:07:02 +0100
commit15eea486961a26a46fccc2514253525aebb41ca8 (patch)
tree862407d621d90afef005e54f9ff2750ae81fa8ea /src/core/procedures/base
parent0f67998aacc86d490d2d258dc6c0e7b5db20deac (diff)
support for "intro" worker in all procedures
Diffstat (limited to 'src/core/procedures/base')
-rw-r--r--src/core/procedures/base12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/core/procedures/base b/src/core/procedures/base
index 7af1452..adb0a39 100644
--- a/src/core/procedures/base
+++ b/src/core/procedures/base
@@ -7,8 +7,8 @@ var_PKG_FILE=/home/arch/aif/runtime/package-list
var_UI_TYPE="cli" # set to cli or dia for dialog
###### Phases ( can be overridden by more specific procedures) ######
-#TODO: warn user that this is a low-interactivity 'common-defaults' installation. ask the user if he really, really wants this, we will probably override his data
phase_preparation=(\
+ intro \
select_source \
runtime_network \
runtime_packages)
@@ -34,6 +34,16 @@ phase_finish=(msg_report)
###### Workers ( can be overridden by more specific procedures) ######
+worker_intro ()
+{
+ ask_yesno "This is a low-interactivity 'common defaults' installation. Do you really want to do this? We may overwrite your data."
+ if [ $? -gt 0 ]
+ then
+ die_error "User aborted base profile execution"
+ fi
+}
+
+
worker_select_source ()
{
var_PKG_SOURCE_TYPE='cd'