When CONFIG_PARTITION_DISK_EFI_REFRESH is enabled we should say that it
might be automatically repaired, when it's disabled say that it can be
repaired with parted, so inverted to what's implemented. Fix that.

Signed-off-by: Sascha Hauer <[email protected]>
---
 common/partitions/efi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/partitions/efi.c b/common/partitions/efi.c
index e58f86cd9d..04f7117389 100644
--- a/common/partitions/efi.c
+++ b/common/partitions/efi.c
@@ -484,7 +484,7 @@ compare_gpts(struct block_device *blk, gpt_header *pgpt, 
gpt_header *agpt,
 
 refresh:
        add_gpt_refresh(blk);
-       if (!IS_ENABLED(CONFIG_PARTITION_DISK_EFI_REFRESH))
+       if (IS_ENABLED(CONFIG_PARTITION_DISK_EFI_REFRESH))
                dev_info(dev, "GPT: will repair later if 
global.system.gpt_refresh=1\n");
        else
                dev_warn(dev, "GPT: Use parted to correct GPT errors.\n");

-- 
2.47.3


Reply via email to