wic: bootimg-efi: include startup.nsh if it's available
We want the system to boot on its own, rather than the user having to manually input the correct file at the EFI prompt. [YOCTO #9556] (From OE-Core rev: aa215c12d729c001ad3b8b98a7e203a9ad192211) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
837670e8ea
commit
91488e9630
|
@ -197,6 +197,11 @@ class BootimgEFIPlugin(SourcePlugin):
|
|||
except KeyError:
|
||||
msger.error("bootimg-efi requires a loader, none specified")
|
||||
|
||||
startup = os.path.join(bootimg_dir, "startup.nsh")
|
||||
if os.path.exists(startup):
|
||||
cp_cmd = "cp %s %s/" % (startup, hdddir)
|
||||
exec_cmd(cp_cmd, True)
|
||||
|
||||
du_cmd = "du -bks %s" % hdddir
|
||||
out = exec_cmd(du_cmd)
|
||||
blocks = int(out.split()[0])
|
||||
|
|
Loading…
Reference in New Issue