Merge pull request #10925 from yuwata/sd-boot-fixes

sd-boot: fixes trailing whitespace trimming and updates document
This commit is contained in:
Lennart Poettering 2018-11-26 14:20:36 +01:00 committed by GitHub
commit 91419787f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -23,7 +23,7 @@
<refsynopsisdiv>
<para><filename><replaceable>ESP</replaceable>/loader/loader.conf</filename>,
<filename><replaceable>ESP</replaceable>/loader/loader.conf.d/*.conf</filename>
<filename><replaceable>ESP</replaceable>/loader/entries/*.conf</filename>
</para>
</refsynopsisdiv>
@ -32,9 +32,9 @@
<para>
<citerefentry><refentrytitle>systemd-boot</refentrytitle><manvolnum>7</manvolnum></citerefentry>
will read <filename>/loader/loader.conf</filename> and any files with the
will read <filename><replaceable>ESP</replaceable>/loader/loader.conf</filename> and any files with the
<literal>.conf</literal> extension under
<filename>/loader/loader.conf.d/</filename> on the EFI system partition (ESP).
<filename><replaceable>ESP</replaceable>/loader/entries/</filename> on the EFI system partition (ESP).
</para>
<para>Each configuration file must consist of an option name, followed by
@ -50,7 +50,7 @@
<refsect1>
<title>Options</title>
<para>The following configuration options are understood:</para>
<para>The following configuration options in <filename>loader.conf</filename> are understood:</para>
<variablelist>
<varlistentry>

View File

@ -981,7 +981,7 @@ skip:
}
/* remove trailing whitespace */
while (linelen > 0 && strchra(sep, line[linelen-1]))
while (linelen > 0 && strchra((CHAR8 *)" \t", line[linelen-1]))
linelen--;
line[linelen] = '\0';