From ef0a4a3d556ecf92d14e32d6490caf7f11f8c509 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Wed, 8 Jan 2025 13:16:19 +0530 Subject: [PATCH] K3: Use sfdisk instead of parted for setting flag in boot partition The latest 'parted' package that is shipped with Ubuntu noble does not allow to set the 'lba' flag on MBR/DOS partitions and fails with an error. Use 'sfdisk' instead for the same. Signed-off-by: Andrew Davis Signed-off-by: Beleswar Padhi --- config/sources/families/k3.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/sources/families/k3.conf b/config/sources/families/k3.conf index c4576c9785fe..33ce59755ea7 100644 --- a/config/sources/families/k3.conf +++ b/config/sources/families/k3.conf @@ -83,7 +83,7 @@ function post_create_partitions() { function format_partitions() { # ROM is very particular about partition IDs - run_host_command_logged parted ${LOOP} set 1 lba on + run_host_command_logged sfdisk --part-type ${LOOP} 1 e } function write_uboot_platform() {