diff options
-rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-pcbios.py | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py b/scripts/lib/wic/plugins/source/bootimg-pcbios.py index bbc9f473e2..bd03eaa228 100644 --- a/scripts/lib/wic/plugins/source/bootimg-pcbios.py +++ b/scripts/lib/wic/plugins/source/bootimg-pcbios.py | |||
@@ -160,13 +160,19 @@ class BootimgPcbiosPlugin(SourcePlugin): | |||
160 | 160 | ||
161 | hdddir = "%s/hdd/boot" % cr_workdir | 161 | hdddir = "%s/hdd/boot" % cr_workdir |
162 | 162 | ||
163 | install_cmd = "install -m 0644 %s/bzImage %s/vmlinuz" \ | 163 | cmds = ("install -m 0644 %s/bzImage %s/vmlinuz" % |
164 | % (staging_kernel_dir, hdddir) | 164 | (staging_kernel_dir, hdddir), |
165 | exec_cmd(install_cmd) | 165 | "install -m 444 %s/syslinux/ldlinux.sys %s/ldlinux.sys" % |
166 | 166 | (bootimg_dir, hdddir), | |
167 | install_cmd = "install -m 444 %s/syslinux/ldlinux.sys %s/ldlinux.sys" \ | 167 | "install -m 0644 %s/syslinux/vesamenu.c32 %s/vesamenu.c32" % |
168 | % (bootimg_dir, hdddir) | 168 | (bootimg_dir, hdddir), |
169 | exec_cmd(install_cmd) | 169 | "install -m 444 %s/syslinux/libcom32.c32 %s/libcom32.c32" % |
170 | (bootimg_dir, hdddir), | ||
171 | "install -m 444 %s/syslinux/libutil.c32 %s/libutil.c32" % | ||
172 | (bootimg_dir, hdddir)) | ||
173 | |||
174 | for install_cmd in cmds: | ||
175 | exec_cmd(install_cmd) | ||
170 | 176 | ||
171 | du_cmd = "du -bks %s" % hdddir | 177 | du_cmd = "du -bks %s" % hdddir |
172 | out = exec_cmd(du_cmd) | 178 | out = exec_cmd(du_cmd) |