From: Farhat-Abbas <[email protected]>
Signed-off-by: Farhat-Abbas <[email protected]>
---
scripts/lib/wic/plugins/source/efibootguard-boot.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/scripts/lib/wic/plugins/source/efibootguard-boot.py
b/scripts/lib/wic/plugins/source/efibootguard-boot.py
index abccfb2..7b59928 100644
--- a/scripts/lib/wic/plugins/source/efibootguard-boot.py
+++ b/scripts/lib/wic/plugins/source/efibootguard-boot.py
@@ -100,6 +100,16 @@ class EfibootguardBootPlugin(SourcePlugin):
fd.write(part.label.upper().encode("utf-16le"))
fd.close()
+ # Copy the specified initrd to the BOOT partition
+ initrd = source_params.get('initrd')
+
+ if initrd:
+ cp_cmd = "cp %s/%s %s" % (kernel_dir, initrd, hdddir)
+ exec_cmd(cp_cmd, True)
+
+ else:
+ msger.debug("Ignoring missing initrd")
+
du_cmd = "du -bks %s" % hdddir
out = exec_cmd(du_cmd)
blocks = int(out.split()[0])
--
2.7.4
--
You received this message because you are subscribed to the Google Groups "EFI
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/efibootguard-dev/1519211476-6350-5-git-send-email-Farhat_Abbas%40mentor.com.
For more options, visit https://groups.google.com/d/optout.