diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-11-22 10:58:14 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-12-18 11:10:53 +0100 |
commit | 3ccadbce3358ba1db7ce5fa3f8dd17c627ffd93b (patch) | |
tree | bf6690b160f0c51db684ee970685497e868b9679 /man/homectl.xml | |
parent | firstboot: adjust what systemd.firstboot=no on the kernel cmdline does (diff) | |
download | systemd-3ccadbce3358ba1db7ce5fa3f8dd17c627ffd93b.tar.xz systemd-3ccadbce3358ba1db7ce5fa3f8dd17c627ffd93b.zip |
homectl: add "firstboot" command
This extends what systemd-firstboot does and runs on first boots only
and either processes user records passed in via credentials to create,
or asks the user interactively to create one (only if no regular user
exists yet).
Diffstat (limited to 'man/homectl.xml')
-rw-r--r-- | man/homectl.xml | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/man/homectl.xml b/man/homectl.xml index 7fc7d5f012..7e26c94179 100644 --- a/man/homectl.xml +++ b/man/homectl.xml @@ -18,6 +18,7 @@ <refnamediv> <refname>homectl</refname> + <refname>systemd-homed-firstboot.service</refname> <refpurpose>Create, remove, change or inspect home directories</refpurpose> </refnamediv> @@ -1138,6 +1139,59 @@ <xi:include href="version-info.xml" xpointer="v250"/></listitem> </varlistentry> + + <varlistentry> + <term><command>firstboot</command></term> + + <listitem><para>This command is supposed to be invoked during the initial boot of the system. It + checks whether any regular home area exists so far, and if not queries the user interactively on the + console for user name and password and creates one. Alternatively, if one or more service credentials + whose name starts with <literal>home.create.</literal> are passed to the command (containing a user + record in JSON format) these users are automatically created at boot.</para> + + <para>This command is invoked by the <filename>systemd-homed-firstboot.service</filename> service + unit.</para> + + <xi:include href="version-info.xml" xpointer="v256"/></listitem> + </varlistentry> + </variablelist> + </refsect1> + + <refsect1> + <title>Credentials</title> + + <para>When invoked with the <command>firstboot</command> command, <command>homectl</command> supports the + service credentials logic as implemented by + <varname>ImportCredential=</varname>/<varname>LoadCredential=</varname>/<varname>SetCredential=</varname> + (see <citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>1</manvolnum></citerefentry> for + details). The following credentials are used when passed in:</para> + + <variablelist class='system-credentials'> + <varlistentry> + <term><varname>home.create.*</varname></term> + + <listitem><para>If one or more credentials whose names begin with <literal>home.create.</literal>, + followed by a valid UNIX username are passed, a new home area is created, one for each specified user + record.</para> + + <xi:include href="version-info.xml" xpointer="v256"/></listitem> + </varlistentry> + </variablelist> + </refsect1> + + <refsect1> + <title>Kernel Command Line</title> + + <variablelist class='kernel-commandline-options'> + <varlistentry> + <term><varname>systemd.firstboot=</varname></term> + + <listitem><para>This boolean will disable the effect of <command>homectl firstboot</command> + command. It's primarily interpreted by + <citerefentry><refentrytitle>systemd-firstboot</refentrytitle><manvolnum>1</manvolnum></citerefentry>.</para> + + <xi:include href="version-info.xml" xpointer="v256"/></listitem> + </varlistentry> </variablelist> </refsect1> |