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. --- man/systemd.unit.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'man') diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index cd3279c192..b1f8108984 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -901,6 +901,7 @@ ConditionCapability= ConditionACPower= ConditionNeedsUpdate= + ConditionFirstBoot= ConditionPathExists= ConditionPathExistsGlob= ConditionPathIsDirectory= @@ -1101,6 +1102,18 @@ files's modification time gets reset indicating a completed update. + ConditionFirstBoot= + takes a boolean argument. This + condition may be used to + conditionalize units on whether the + system is booting up with an + unpopulated /etc + directory. This may be used to + populate /etc on + the first boot after factory reset, or + when a new system instances boots up + for the first time. + With ConditionPathExists= a file existence condition is -- cgit v1.2.3-54-g00ecf