From e26807239bd65bc17535a53cd540f38600e7ef24 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 7 Jul 2014 19:25:31 +0200 Subject: firstboot: get rid of firstboot generator again, introduce ConditionFirstBoot= instead As Zbigniew pointed out a new ConditionFirstBoot= appears like the nicer way to hook in systemd-firstboot.service on first boots (those with /etc unpopulated), so let's do this, and get rid of the generator again. --- src/core/manager.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core/manager.h') diff --git a/src/core/manager.h b/src/core/manager.h index eff639d1b6..718c29fa0f 100644 --- a/src/core/manager.h +++ b/src/core/manager.h @@ -228,6 +228,7 @@ struct Manager { bool dispatching_dbus_queue:1; bool taint_usr:1; + bool first_boot:1; ShowStatus show_status; bool confirm_spawn; @@ -243,7 +244,6 @@ struct Manager { bool default_cpu_accounting; bool default_memory_accounting; bool default_blockio_accounting; - bool is_first_boot; usec_t default_timer_accuracy_usec; @@ -334,6 +334,8 @@ void manager_undo_generators(Manager *m); void manager_recheck_journal(Manager *m); void manager_set_show_status(Manager *m, ShowStatus mode); +void manager_set_first_boot(Manager *m, bool b); + void manager_status_printf(Manager *m, bool ephemeral, const char *status, const char *format, ...) _printf_(4,5); void manager_flip_auto_status(Manager *m, bool enable); -- cgit v1.2.3-54-g00ecf