From 54d927d5792ec5f6bcb6011f75366918ab26fc39 Mon Sep 17 00:00:00 2001 From: Michael Ferrari Date: Sat, 28 Mar 2026 00:32:03 +0100 Subject: [PATCH] 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 --- src/repart/repart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repart/repart.c b/src/repart/repart.c index 1cdc0a051f..2af567eb6c 100644 --- a/src/repart/repart.c +++ b/src/repart/repart.c @@ -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) {