diff options
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-efi.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py index a4734c9b36..ec13f6d2e5 100644 --- a/scripts/lib/wic/plugins/source/bootimg-efi.py +++ b/scripts/lib/wic/plugins/source/bootimg-efi.py | |||
@@ -197,6 +197,11 @@ class BootimgEFIPlugin(SourcePlugin): | |||
197 | except KeyError: | 197 | except KeyError: |
198 | msger.error("bootimg-efi requires a loader, none specified") | 198 | msger.error("bootimg-efi requires a loader, none specified") |
199 | 199 | ||
200 | startup = os.path.join(bootimg_dir, "startup.nsh") | ||
201 | if os.path.exists(startup): | ||
202 | cp_cmd = "cp %s %s/" % (startup, hdddir) | ||
203 | exec_cmd(cp_cmd, True) | ||
204 | |||
200 | du_cmd = "du -bks %s" % hdddir | 205 | du_cmd = "du -bks %s" % hdddir |
201 | out = exec_cmd(du_cmd) | 206 | out = exec_cmd(du_cmd) |
202 | blocks = int(out.split()[0]) | 207 | blocks = int(out.split()[0]) |