diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-11-09 23:16:41 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-11-09 23:16:41 +0100 |
commit | f47795374171c3eef8389201208acb6cc965721d (patch) | |
tree | b8993b96a0da6609466865291fdea43048ea8717 /unofficial/modules/dieter | |
parent | 0d9b48c94617b7f89bdec8794a61df26ba4f45d9 (diff) |
exit status is maintained for phases and workers. reporting added. phases are now arrays that list the workers. phase logic reorganized in dieters automatic procedure
Diffstat (limited to 'unofficial/modules/dieter')
-rw-r--r-- | unofficial/modules/dieter/procedures/automatic | 50 |
1 files changed, 34 insertions, 16 deletions
diff --git a/unofficial/modules/dieter/procedures/automatic b/unofficial/modules/dieter/procedures/automatic index 6720a9a..0bc5284 100644 --- a/unofficial/modules/dieter/procedures/automatic +++ b/unofficial/modules/dieter/procedures/automatic @@ -4,29 +4,29 @@ depend_procedure core base var_RUNTIME_PACKAGES="svn" -phase_preparation () +phase_preparation=(\ + msg_manual \ + runtime_network \ + runtime_svn \ + msg_automatic \ + select_source \ + runtime_packages \ + runtime_yaourt) + +phase_finish=(configure_home msg_report) + + + +worker_msg_manual () { # All things that need to be done manually first notify "A few manual things need to happen first..." - execute worker runtime_network - SVN_USERNAME=dieter - ask_password svn #TODO: if user entered incorrect password, the install process will just fail.. - SVN="svn --username $SVN_USERNAME --password $SVN_PASSWORD" - SVN_BASE=https://192.168.1.2/svn/repos - TARGET_HOST=desktop-a7n8x #TODO: prompt user for this, or let him pass it as cmdline argument (and check with svn info) - - notify "**** From now on. everything will be automatic. Enjoy the show!" # not true: you need pass for dm_crypt - _accept_ssl_cert - - execute worker select_source - execute worker runtime_packages - _yaourt_replace_pacman } -phase_finish () +worker_msg_automatic () { - execute worker configure_home + notify "**** From now on. everything will be automatic. Enjoy the show!" # not true: you need pass for dm_crypt } @@ -42,6 +42,17 @@ worker_runtime_network () } +worker_runtime_svn () +{ + SVN_USERNAME=dieter + ask_password svn #TODO: if user entered incorrect password, the install process will just fail.. + SVN="svn --username $SVN_USERNAME --password $SVN_PASSWORD" + SVN_BASE=https://192.168.1.2/svn/repos + TARGET_HOST=desktop-a7n8x #TODO: prompt user for this, or let him pass it as cmdline argument (and check with svn info) + _accept_ssl_cert +} + + worker_prepare_disks () { modprobe dm-crypt || die_error "Cannot modprobe dm-crypt" @@ -109,8 +120,15 @@ worker_set_clock () true } + worker_install_bootloader () { install-grub /dev/sda } + +worker_runtime_yaourt () +{ + _yaourt_replace_pacman +} + |