public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] wic/plugins/bootimg-efi-isar: Use initrd from source params
@ 2024-01-25 10:55 Quirin Gylstorff
  2024-01-25 12:06 ` MOESSBAUER, Felix
  0 siblings, 1 reply; 3+ messages in thread
From: Quirin Gylstorff @ 2024-01-25 10:55 UTC (permalink / raw)
  To: isar-users

From: Quirin Gylstorff <quirin.gylstorff@siemens.com>

This fixes the issue that you can add a initrd with the source params
but it will still boot the initial initrd.

Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
 meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py | 5 +++++
 1 file changed, 5 insertions(+)

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 b934d0c7..27d40756 100644
--- a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
+++ b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
@@ -185,7 +185,12 @@ class BootimgEFIPlugin(SourcePlugin):
 
             title = source_params.get('title')
 
+            temp_initrd = None
+            if initrd:
+                temp_initrd = initrd
             kernel, initrd = isar_get_filenames(get_bitbake_var("IMAGE_ROOTFS"))
+            if temp_initrd:
+                initrd = temp_initrd
 
             boot_conf = ""
             boot_conf += "title %s\n" % (title if title else "boot")
-- 
2.43.0


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

end of thread, other threads:[~2024-02-01 10:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-25 10:55 [PATCH] wic/plugins/bootimg-efi-isar: Use initrd from source params Quirin Gylstorff
2024-01-25 12:06 ` MOESSBAUER, Felix
2024-02-01 10:06   ` Uladzimir Bely

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