[PATCH] partitions: efi: allow refresh without command support

Ahmad Fatoum a.fatoum at pengutronix.de
Tue Jan 20 23:56:37 PST 2026


CONFIG_PARTITION_MANIPULATION is currently selected by the createnv and
parted commands, but neither is really needed to make use of the
global.system.gpt_refresh magic variable.

Adapt the dependencies in Kconfig to reflect this.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 common/partitions/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/common/partitions/Kconfig b/common/partitions/Kconfig
index 1007dbbe19d2..9d037b02e257 100644
--- a/common/partitions/Kconfig
+++ b/common/partitions/Kconfig
@@ -25,7 +25,8 @@ config PARTITION_DISK_EFI
 	  Add support to handle partitions in GUID Partition Table style.
 
 config PARTITION_DISK_EFI_REFRESH
-	depends on PARTITION_DISK_EFI && PARTITION_MANIPULATION
+	depends on PARTITION_DISK_EFI
+	select PARTITION_MANIPULATION
 	bool "refresh GPT partition on demand"
 	help
 	  The GPT alternative header must be at the end of the device. When disk
-- 
2.47.3




More information about the barebox mailing list