Changeset af92309 in mainline for uspace/srv/sysman/main.c
- Timestamp:
- 2019-08-07T09:33:04Z (5 years ago)
- Children:
- 9532981
- Parents:
- 918ac9b
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-11-02 22:12:18)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-07 09:33:04)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/main.c
r918ac9b raf92309 37 37 #include <str.h> 38 38 39 #include " configuration.h"39 #include "repo.h" 40 40 #include "connection_broker.h" 41 41 #include "connection_ctl.h" … … 131 131 * Add units to configuration and start the default target. 132 132 */ 133 configuration_start_update();134 135 configuration_add_unit(mnt_initrd);136 configuration_add_unit(cfg_init);137 configuration_add_unit(tgt_init);133 repo_begin_update(); 134 135 repo_add_unit(mnt_initrd); 136 repo_add_unit(cfg_init); 137 repo_add_unit(tgt_init); 138 138 139 139 rc = dep_add_dependency(tgt_init, cfg_init); … … 147 147 } 148 148 149 configuration_commit();149 repo_commit(); 150 150 151 151 return EOK; … … 158 158 159 159 rollback: 160 configuration_rollback();160 repo_rollback(); 161 161 return rc; 162 162 } … … 186 186 187 187 /* Previous targets should have loaded new units */ 188 unit_t *tgt = configuration_find_unit_by_name(target_name);188 unit_t *tgt = repo_find_unit_by_name(target_name); 189 189 if (tgt == NULL) { 190 190 sysman_log(LVL_ERROR, … … 210 210 */ 211 211 // TODO check return values and abort start 212 configuration_init();212 repo_init(); 213 213 sysman_events_init(); 214 214 job_queue_init();
Note:
See TracChangeset
for help on using the changeset viewer.