Only enable NoAuto=true for supported partitions

When `Format=empty` is set we need to check for `NoAuto` support for
the partition type, else we print a warning later in the build.

Followup for 381304a
This commit is contained in:
Michael Ferrari
2026-03-30 23:35:29 +02:00
committed by Daan De Meyer
parent 07167cefd6
commit 54d927d579
+1 -1
View File
@@ -2969,7 +2969,7 @@ static int partition_read_definition(
if (streq_ptr(p->format, "empty")) {
p->format = mfree(p->format);
if (p->no_auto < 0)
if (p->no_auto < 0 && gpt_partition_type_knows_no_auto(p->type))
p->no_auto = true;
if (!p->new_label) {