sysext: provide a cmdline kill switch for the sysext/confext merging logic

While it is possible to disable sysext/confext merging in the main system
with 'systemctl disable', sysext/confext are always merged in the initrd,
both by systemd-{sys,conf}ext-initrd.service and by
systemd-{sys,conf}ext-sysroot.service and especially the latter can be
unexpected. Provide kernel cmdline options systemd.{sys,conf}ext=0 and
rd.systemd.{sys,conf}ext=0 covering all options.
This commit is contained in:
Vitaly Kuznetsov
2026-04-07 09:51:03 +02:00
parent c70b17daad
commit 2299a37e28
9 changed files with 46 additions and 1 deletions
+16
View File
@@ -829,6 +829,22 @@
<xi:include href="version-info.xml" xpointer="v261"/></listitem>
</varlistentry>
<varlistentry>
<term><varname>systemd.sysext=</varname></term>
<term><varname>systemd.confext=</varname></term>
<term><varname>rd.systemd.sysext=</varname></term>
<term><varname>rd.systemd.confext=</varname></term>
<listitem><para>Take boolean arguments, default to on. Control whether system and configuration
extensions for the initrd (<varname>rd.systemd.sysext=</varname>, <varname>rd.systemd.confext=</varname>)
and for the main system (<varname>systemd.sysext=</varname>, <varname>systemd.confext=</varname>) are
merged automatically on boot. See
<citerefentry><refentrytitle>systemd-sysext</refentrytitle><manvolnum>8</manvolnum></citerefentry>
for details.</para>
<xi:include href="version-info.xml" xpointer="v261"/></listitem>
</varlistentry>
</variablelist>
</refsect1>