vmspawn: Use ~ instead of ! as negation prefix for --firmware-features=

Switch the negation character for firmware feature exclusion from
"!" to "~" to be consistent with other systemd options that support
negation such as SystemCallFilter=.
This commit is contained in:
Daan De Meyer
2026-04-05 21:09:23 +02:00
committed by Daan De Meyer
parent a85845f043
commit fb4bfe651b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -358,7 +358,7 @@
<listitem><para>Takes a comma-delimited list of firmware feature strings. This option may be
specified multiple times, in which case the feature lists are combined. When specified, only
firmware definitions that have all the required features will be considered during automatic
firmware discovery. Features prefixed with <literal>!</literal> are excluded: firmware that has
firmware discovery. Features prefixed with <literal>~</literal> are excluded: firmware that has
such a feature will be skipped. If a feature appears in both the included and excluded lists,
inclusion takes priority. By default, firmware with the <literal>enrolled-keys</literal>
feature is excluded. If an empty string is passed, both the included and excluded feature lists
@@ -384,7 +384,7 @@
<listitem><para>Configure whether to search for firmware which supports Secure Boot. Takes a
boolean or <literal>auto</literal>. Setting this to yes is equivalent to
<option>--firmware-features=secure-boot</option> and setting this to no is equivalent to
<option>--firmware-features=!secure-boot</option>. Setting this to <literal>auto</literal>
<option>--firmware-features=~secure-boot</option>. Setting this to <literal>auto</literal>
removes <literal>secure-boot</literal> from both the included and excluded feature lists.</para>
<xi:include href="version-info.xml" xpointer="v255"/></listitem>
+1 -1
View File
@@ -857,7 +857,7 @@ static int parse_argv(int argc, char *argv[]) {
return log_oom();
STRV_FOREACH(feature, features) {
const char *e = startswith(*feature, "!");
const char *e = startswith(*feature, "~");
r = set_put_strdup(e ? &arg_firmware_features_exclude : &arg_firmware_features_include, e ?: *feature);
if (r < 0)
return log_oom();