public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] wic: support passing extraargs for EFI partition creation
@ 2025-12-17 13:02 'Richa Bharti' via isar-users
  2025-12-18  7:28 ` Anton Mikanovich
  0 siblings, 1 reply; 5+ messages in thread
From: 'Richa Bharti' via isar-users @ 2025-12-17 13:02 UTC (permalink / raw)
  To: isar-users; +Cc: cedric.hombourger, srikanth.krishnakar, Richa Bharti

Some EFI firmwares require FAT filesystems to use specific geometry or
sector parameters.

Add support for an `extraargs` source parameter to allow passing
additional mkdosfs options when creating the EFI System Partition (ESP).
If no extra arguments are provided, mkdosfs defaults to "-S 512",
preserving existing behaviour.

Signed-off-by: Richa Bharti <Richa.Bharti@siemens.com>
---
 meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
index 446398d0..6862a288 100644
--- a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
+++ b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
@@ -506,8 +506,10 @@ class BootimgEFIPlugin(SourcePlugin):
 
         label = part.label if part.label else "ESP"
 
-        dosfs_cmd = "mkdosfs -n %s -i %s -C %s %d" % \
-                    (label, part.fsuuid, bootimg, blocks)
+        extraargs = source_params['extraargs'] or "-S 512"
+
+        dosfs_cmd = "mkdosfs -n %s -i %s %s -C %s %d" % \
+                    (label, part.fsuuid, extraargs, bootimg, blocks)
         exec_native_cmd(dosfs_cmd, native_sysroot)
 
         mcopy_cmd = "mcopy -i %s -s %s/* ::/" % (bootimg, hdddir)
-- 
2.39.5

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20251217130253.947946-1-Richa.Bharti%40siemens.com.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-12-18  8:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-17 13:02 [PATCH] wic: support passing extraargs for EFI partition creation 'Richa Bharti' via isar-users
2025-12-18  7:28 ` Anton Mikanovich
2025-12-18  8:22   ` [PATCH v2] " 'Richa Bharti' via isar-users
2025-12-18  8:29     ` RICHA BHARTI
2025-12-18  8:39     ` 'Bharti, Richa' via isar-users

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox