[systemd-devel] [systemd-commits] 10 commits - .gitignore Makefile.am TODO configure.ac man/systemd.unit.xml src/core src/firstboot src/hostname src/locale src/shared src/sleep src/timedate units/.gitignore units/systemd-firstboot.service.in
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Mon Jul 7 07:14:39 PDT 2014
On Mon, Jul 07, 2014 at 06:26:33AM -0700, Lennart Poettering wrote:
> .gitignore | 2
> Makefile.am | 36 +
> TODO | 5
> configure.ac | 9
> man/systemd.unit.xml | 9
> src/core/execute.c | 2
> src/core/main.c | 9
> src/core/manager.c | 12
> src/core/manager.h | 1
> src/core/shutdown.c | 2
> src/firstboot/Makefile | 1
> src/firstboot/firstboot-generator.c | 71 ++
> src/firstboot/firstboot.c | 930 ++++++++++++++++++++++++++++++++++++
> src/hostname/hostnamed.c | 3
> src/locale/localectl.c | 184 -------
> src/locale/localed.c | 3
> src/shared/architecture.c | 2
> src/shared/env-util.c | 4
> src/shared/fileio.c | 26 -
> src/shared/locale-util.c | 205 +++++++
> src/shared/locale-util.h | 25
> src/shared/time-util.c | 103 +++
> src/shared/time-util.h | 3
> src/shared/util.c | 83 ++-
> src/shared/util.h | 7
> src/sleep/sleep.c | 4
> src/timedate/timedatectl.c | 60 --
> src/timedate/timedated.c | 53 --
> units/.gitignore | 1
> units/systemd-firstboot.service.in | 23
> 30 files changed, 1552 insertions(+), 326 deletions(-)
>
> New commits:
> commit 418b9be50018303cde79b423d4701b7fd86ddbdc
> Author: Lennart Poettering <lennart at poettering.net>
> Date: Mon Jul 7 15:05:37 2014 +0200
>
> firstboot: add new component to query basic system settings on first boot, or when creating OS images offline
>
> A new tool "systemd-firstboot" can be used either interactively on boot,
> where it will query basic locale, timezone, hostname, root password
> information and set it. Or it can be used non-interactively from the
> command line when prepareing disk images for booting. When used
> non-inertactively the tool can either copy settings from the host, or
> take settings on the command line.
>
> $ systemd-firstboot --root=/path/to/my/new/root --copy-locale --copy-root-password --hostname=waldi
>
> The tool will be automatically invoked (interactively) now on first boot
> if /etc is found unpopulated.
>
> This also creates the infrastructure for generators to be notified via
> an environment variable whether they are running on the first boot, or
> not.
Hi,
wouldn't it be simpler to add a ConditionFirstBoot=yes or ConditionBoot=first to units?
Zbyszek
More information about the systemd-devel
mailing list