diff options
Diffstat (limited to 'scripts/lib/wic/plugins/source/bootimg-pcbios.py')
| -rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-pcbios.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py b/scripts/lib/wic/plugins/source/bootimg-pcbios.py index bfb8ff5a96..5890c1267b 100644 --- a/scripts/lib/wic/plugins/source/bootimg-pcbios.py +++ b/scripts/lib/wic/plugins/source/bootimg-pcbios.py | |||
| @@ -81,10 +81,8 @@ class BootimgPcbiosPlugin(SourcePlugin): | |||
| 81 | logger.debug("Installing MBR on disk %s as %s with size %s bytes", | 81 | logger.debug("Installing MBR on disk %s as %s with size %s bytes", |
| 82 | disk_name, full_path, disk.min_size) | 82 | disk_name, full_path, disk.min_size) |
| 83 | 83 | ||
| 84 | rcode = runner.show(['dd', 'if=%s' % mbrfile, | 84 | dd_cmd = "dd if=%s of=%s conv=notrunc" % (mbrfile, full_path) |
| 85 | 'of=%s' % full_path, 'conv=notrunc']) | 85 | exec_cmd(dd_cmd, native_sysroot) |
| 86 | if rcode != 0: | ||
| 87 | raise WicError("Unable to set MBR to %s" % full_path) | ||
| 88 | 86 | ||
| 89 | @classmethod | 87 | @classmethod |
| 90 | def do_configure_partition(cls, part, source_params, creator, cr_workdir, | 88 | def do_configure_partition(cls, part, source_params, creator, cr_workdir, |
