New upstream version 246.1

This commit is contained in:
Michael Biebl 2020-08-15 20:30:35 +02:00
parent a10f5d05b9
commit bfa1f358a2
9 changed files with 27 additions and 15 deletions

View File

@ -67,12 +67,18 @@
<literal>persistent</literal>, data will be stored preferably on disk, i.e. below the <literal>persistent</literal>, data will be stored preferably on disk, i.e. below the
<filename>/var/log/journal</filename> hierarchy (which is created if needed), with a fallback to <filename>/var/log/journal</filename> hierarchy (which is created if needed), with a fallback to
<filename>/run/log/journal</filename> (which is created if needed), during early boot and if the disk <filename>/run/log/journal</filename> (which is created if needed), during early boot and if the disk
is not writable. <literal>auto</literal> is similar to <literal>persistent</literal> but the is not writable. <literal>auto</literal> behaves like <literal>persistent</literal> if the
directory <filename>/var/log/journal</filename> is not created if needed, so that its existence <filename>/var/log/journal</filename> directory exists, and <literal>volatile</literal> otherwise
controls where log data goes. <literal>none</literal> turns off all storage, all log data received (the existence of the directory controls the storage mode). <literal>none</literal> turns off all
will be dropped. Forwarding to other targets, such as the console, the kernel log buffer, or a syslog storage, all log data received will be dropped (but forwarding to other targets, such as the console,
socket will still work however. Defaults to <literal>auto</literal> in the default journal namespace, the kernel log buffer, or a syslog socket will still work). Defaults to <literal>auto</literal> in
and <literal>persistent</literal> in all others.</para></listitem> the default journal namespace, and <literal>persistent</literal> in all others.</para>
<para>Note that when this option is changed to <literal>volatile</literal>, existing persistent data
is not removed. In the other direction,
<citerefentry><refentrytitle>journalctl</refentrytitle><manvolnum>1</manvolnum></citerefentry> with
the <option>--flush</option> option may be used to move volatile data to persistent storage.</para>
</listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>

View File

@ -2378,7 +2378,9 @@ StandardInputData=SWNrIHNpdHplIGRhIHVuJyBlc3NlIEtsb3BzLAp1ZmYgZWVtYWwga2xvcHAncy
so that they are automatically established prior to the unit starting up. Note that when this option so that they are automatically established prior to the unit starting up. Note that when this option
is used log output of this service does not appear in the regular is used log output of this service does not appear in the regular
<citerefentry><refentrytitle>journalctl</refentrytitle><manvolnum>1</manvolnum></citerefentry> <citerefentry><refentrytitle>journalctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
output, unless the <option>--namespace=</option> option is used.</para></listitem> output, unless the <option>--namespace=</option> option is used.</para>
<xi:include href="system-only.xml" xpointer="singular"/></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>

View File

@ -3533,10 +3533,7 @@ DHCP=ipv6</programlisting>
Name=enp2s0 Name=enp2s0
[Network] [Network]
IPv6PrefixDelegation=dhcpv6 IPv6PrefixDelegation=dhcpv6</programlisting>
[DHCPv6]
AssignAcquiredDelegatedPrefixAddress=yes</programlisting>
<para>This will enable IPv6 PD on the interface enp1s0 as an upstream interface where the <para>This will enable IPv6 PD on the interface enp1s0 as an upstream interface where the
DHCPv6 client is running and enp2s0 as a downstream interface where the prefix is delegated to.</para> DHCPv6 client is running and enp2s0 as a downstream interface where the prefix is delegated to.</para>

View File

@ -901,7 +901,7 @@
<programlisting>SuccessExitStatus=TEMPFAIL 250 SIGUSR1</programlisting> <programlisting>SuccessExitStatus=TEMPFAIL 250 SIGUSR1</programlisting>
<para>Exit status 75 (<constant>TEMPFAIL</constant>), 250, and the termination signal <para>Exit status 75 (<constant>TEMPFAIL</constant>), 250, and the termination signal
<constant>SIGKILL</constant> are considered clean service terminations.</para> <constant>SIGUSR1</constant> are considered clean service terminations.</para>
</example> </example>
<para>Note: <command>systemd-analyze exit-status</command> may be used to list exit statuses and <para>Note: <command>systemd-analyze exit-status</command> may be used to list exit statuses and

View File

@ -966,6 +966,7 @@ int transaction_add_job_and_dependencies(
* Given building up the transaction is a synchronous operation, attempt * Given building up the transaction is a synchronous operation, attempt
* to load the unit immediately. */ * to load the unit immediately. */
if (r < 0 && manager_unit_file_maybe_loadable_from_cache(unit)) { if (r < 0 && manager_unit_file_maybe_loadable_from_cache(unit)) {
sd_bus_error_free(e);
unit->load_state = UNIT_STUB; unit->load_state = UNIT_STUB;
r = unit_load(unit); r = unit_load(unit);
if (r < 0 || unit->load_state == UNIT_STUB) if (r < 0 || unit->load_state == UNIT_STUB)

View File

@ -3259,7 +3259,7 @@ static int inner_child(
* binary. */ * binary. */
dollar_path = strv_env_get(env_use, "PATH"); dollar_path = strv_env_get(env_use, "PATH");
if (dollar_path) { if (dollar_path) {
if (putenv((char*) dollar_path) != 0) if (setenv("PATH", dollar_path, 1) < 0)
return log_error_errno(errno, "Failed to update $PATH: %m"); return log_error_errno(errno, "Failed to update $PATH: %m");
} }

View File

@ -234,6 +234,12 @@ static int guess_type(const char **name, char ***prefixes, bool *is_collection,
if (!n) if (!n)
return log_oom(); return log_oom();
/* All systemd-style config files should support the /usr-/etc-/run split and
* dropins. Let's add a blanket rule that allows us to support them without keeping
* an explicit list. */
if (path_startswith(n, "systemd") && endswith(n, ".conf"))
usr = true;
delete_trailing_chars(n, "/"); delete_trailing_chars(n, "/");
if (endswith(n, ".d")) if (endswith(n, ".d"))

View File

@ -7718,7 +7718,7 @@ static int systemctl_help(void) {
" -M --machine=CONTAINER Operate on a local container\n" " -M --machine=CONTAINER Operate on a local container\n"
" -t --type=TYPE List units of a particular type\n" " -t --type=TYPE List units of a particular type\n"
" --state=STATE List units with particular LOAD or SUB or ACTIVE state\n" " --state=STATE List units with particular LOAD or SUB or ACTIVE state\n"
" --failed Shorcut for --state=failed\n" " --failed Shortcut for --state=failed\n"
" -p --property=NAME Show only properties by this name\n" " -p --property=NAME Show only properties by this name\n"
" -P NAME Equivalent to --value --property=NAME\n" " -P NAME Equivalent to --value --property=NAME\n"
" -a --all Show all properties/all units currently in memory,\n" " -a --all Show all properties/all units currently in memory,\n"

View File

@ -19,7 +19,7 @@
/* This is a private header; never even think of including this directly! */ /* This is a private header; never even think of including this directly! */
#if defined(__INCLUDE_LEVEL__) && __INCLUDE_LEVEL__ <= 1 #if defined(__INCLUDE_LEVEL__) && __INCLUDE_LEVEL__ <= 1 && !defined(__COVERITY__)
# error "Do not include _sd-common.h directly; it is a private header." # error "Do not include _sd-common.h directly; it is a private header."
#endif #endif