modules and overlay images can set default kernel command line
parameters in /etc/cmdline/*.conf in the initramfs.
<para>Can contain additional command line options.</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term>
+ <filename>/etc/cmdline.d/*.conf</filename>
+ </term>
+ <listitem>
+ <para>Can contain additional command line options.</para>
+ </listitem>
+ </varlistentry>
</variablelist>
</refsect1>
<refsect1>
_getcmdline() {
local _line
+ local _i
unset _line
if [ -z "$CMDLINE" ]; then
if [ -e /etc/cmdline ]; then
CMDLINE_ETC="$CMDLINE_ETC $_line";
done </etc/cmdline;
fi
+ for _i in /etc/cmdline.d/*.conf; do
+ [ -e "$_i" ] || continue
+ while read -r _line; do
+ CMDLINE_ETC_D="$CMDLINE_ETC_D $_line";
+ done <"$_i";
+ done
read -r CMDLINE </proc/cmdline;
- CMDLINE="$CMDLINE $CMDLINE_ETC"
+ CMDLINE="$CMDLINE_ETC_D $CMDLINE_ETC $CMDLINE"
fi
}