diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-07 19:25:31 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-07 21:05:09 +0200 |
commit | e26807239bd65bc17535a53cd540f38600e7ef24 (patch) | |
tree | 3100aec0ebcf4743d138fcf4d6d03977b8a90817 /man/systemd.unit.xml | |
parent | 45035609fcfc3fe09324988c4929a3c147171c23 (diff) |
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.
Diffstat (limited to 'man/systemd.unit.xml')
-rw-r--r-- | man/systemd.unit.xml | 13 |
1 files changed, 13 insertions, 0 deletions
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 @@ <term><varname>ConditionCapability=</varname></term> <term><varname>ConditionACPower=</varname></term> <term><varname>ConditionNeedsUpdate=</varname></term> + <term><varname>ConditionFirstBoot=</varname></term> <term><varname>ConditionPathExists=</varname></term> <term><varname>ConditionPathExistsGlob=</varname></term> <term><varname>ConditionPathIsDirectory=</varname></term> @@ -1101,6 +1102,18 @@ files's modification time gets reset indicating a completed update.</para> + <para><varname>ConditionFirstBoot=</varname> + takes a boolean argument. This + condition may be used to + conditionalize units on whether the + system is booting up with an + unpopulated <filename>/etc</filename> + directory. This may be used to + populate <filename>/etc</filename> on + the first boot after factory reset, or + when a new system instances boots up + for the first time.</para> + <para>With <varname>ConditionPathExists=</varname> a file existence condition is |