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:
committed by
Daan De Meyer
parent
07167cefd6
commit
54d927d579
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user