diff options
Diffstat (limited to 'scripts/lib/mic/plugins/source/bootimg-efi.py')
| -rw-r--r-- | scripts/lib/mic/plugins/source/bootimg-efi.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/lib/mic/plugins/source/bootimg-efi.py b/scripts/lib/mic/plugins/source/bootimg-efi.py index 0dd9152b59..aecda6b0f1 100644 --- a/scripts/lib/mic/plugins/source/bootimg-efi.py +++ b/scripts/lib/mic/plugins/source/bootimg-efi.py | |||
| @@ -53,7 +53,7 @@ class BootimgEFIPlugin(SourcePlugin): | |||
| 53 | exec_cmd(rm_cmd) | 53 | exec_cmd(rm_cmd) |
| 54 | 54 | ||
| 55 | install_cmd = "install -d %s/EFI/BOOT" % hdddir | 55 | install_cmd = "install -d %s/EFI/BOOT" % hdddir |
| 56 | tmp = exec_cmd(install_cmd) | 56 | exec_cmd(install_cmd) |
| 57 | 57 | ||
| 58 | splash = os.path.join(cr_workdir, "/EFI/boot/splash.jpg") | 58 | splash = os.path.join(cr_workdir, "/EFI/boot/splash.jpg") |
| 59 | if os.path.exists(splash): | 59 | if os.path.exists(splash): |
| @@ -116,7 +116,7 @@ class BootimgEFIPlugin(SourcePlugin): | |||
| 116 | 116 | ||
| 117 | install_cmd = "install -m 0644 %s/bzImage %s/bzImage" % \ | 117 | install_cmd = "install -m 0644 %s/bzImage %s/bzImage" % \ |
| 118 | (staging_kernel_dir, hdddir) | 118 | (staging_kernel_dir, hdddir) |
| 119 | tmp = exec_cmd(install_cmd) | 119 | exec_cmd(install_cmd) |
| 120 | 120 | ||
| 121 | shutil.copyfile("%s/hdd/boot/EFI/BOOT/grub.cfg" % cr_workdir, | 121 | shutil.copyfile("%s/hdd/boot/EFI/BOOT/grub.cfg" % cr_workdir, |
| 122 | "%s/grub.cfg" % cr_workdir) | 122 | "%s/grub.cfg" % cr_workdir) |
| @@ -128,7 +128,7 @@ class BootimgEFIPlugin(SourcePlugin): | |||
| 128 | "%s/hdd/boot/EFI/BOOT/grub.cfg" % cr_workdir) | 128 | "%s/hdd/boot/EFI/BOOT/grub.cfg" % cr_workdir) |
| 129 | 129 | ||
| 130 | du_cmd = "du -bks %s" % hdddir | 130 | du_cmd = "du -bks %s" % hdddir |
| 131 | rc, out = exec_cmd(du_cmd) | 131 | out = exec_cmd(du_cmd) |
| 132 | blocks = int(out.split()[0]) | 132 | blocks = int(out.split()[0]) |
| 133 | 133 | ||
| 134 | extra_blocks = part.get_extra_block_count(blocks) | 134 | extra_blocks = part.get_extra_block_count(blocks) |
| @@ -160,7 +160,7 @@ class BootimgEFIPlugin(SourcePlugin): | |||
| 160 | exec_cmd(chmod_cmd) | 160 | exec_cmd(chmod_cmd) |
| 161 | 161 | ||
| 162 | du_cmd = "du -Lbms %s" % bootimg | 162 | du_cmd = "du -Lbms %s" % bootimg |
| 163 | rc, out = exec_cmd(du_cmd) | 163 | out = exec_cmd(du_cmd) |
| 164 | bootimg_size = out.split()[0] | 164 | bootimg_size = out.split()[0] |
| 165 | 165 | ||
| 166 | part.set_size(bootimg_size) | 166 | part.set_size(bootimg_size) |
