This is a new meta value for the `Format=` option, which is equivalent
as specifying `Label=_empty` and `NoAuto=1` for compatibility with
sd-sysupdate.
Closes: https://github.com/systemd/systemd/issues/34596
required for the minimal file system of the specified type (or 4KiB if the minimal size is not
known).</para>
+ <para>This also takes a special meta value <literal>empty</literal>. If specified this is equivalent
+ to specifying <literal>Label=_empty</literal> and <literal>NoAuto=1</literal>.</para>
+
<para>This option has no effect if the partition already exists.</para>
<para>Similarly to the behaviour of <varname>CopyBlocks=</varname>, the file system is formatted
}
}
+ if (streq_ptr(p->format, "empty")) {
+ p->format = mfree(p->format);
+
+ if (p->no_auto < 0)
+ p->no_auto = true;
+
+ if (!p->new_label) {
+ p->new_label = strdup("_empty");
+ if (!p->new_label)
+ return log_oom();
+ }
+ }
+
if (p->minimize != MINIMIZE_OFF && !p->format && p->verity != VERITY_HASH)
return log_syntax(NULL, LOG_ERR, path, 1, SYNTHETIC_ERRNO(EINVAL),
"Minimize= can only be enabled if Format= or Verity=hash are set.");