Skip to content

Commit 6b38b68

Browse files
committed
daemon/cmld: initialize the A/B update mechanism
On every start, run the check routine to find whether A/B update is completely set up. This will automatically migrate classical installations to the redundant setup, when started for the first time. Signed-off-by: Johannes Wiesböck <[email protected]>
1 parent 12988a8 commit 6b38b68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

daemon/cmld.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,6 +1508,9 @@ cmld_init_stage_unit(const char *path)
15081508
else
15091509
INFO("mounted debugfs");
15101510

1511+
if (!cmld_hostedmode)
1512+
a_b_update_init();
1513+
15111514
// init audit and set max audit log file size
15121515
if (audit_init(device_config_get_audit_size(device_config)) < 0)
15131516
WARN("Could not init audit module");

0 commit comments

Comments
 (0)