]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
vmspawn: Use ~ instead of ! as negation prefix for --firmware-features=
authorDaan De Meyer <daan@amutable.com>
Sun, 5 Apr 2026 17:46:12 +0000 (17:46 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 5 Apr 2026 19:09:23 +0000 (21:09 +0200)
Switch the negation character for firmware feature exclusion from
"!" to "~" to be consistent with other systemd options that support
negation such as SystemCallFilter=.

man/systemd-vmspawn.xml
src/vmspawn/vmspawn.c

index d65bd965a39de50824caf44a682ef14124a23300..cca7496ed0468d8175c127e4df7ce6b01c3f64bd 100644 (file)
           <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
           <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>
index 92a5555f64bbcb96930e724f07d8d7f88251da92..96ca4cee91e9b71c9640ca2acf7b6eb4d9667020 100644 (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();