diff options
Diffstat (limited to 'scripts/lib/wic/plugins/source/rawcopy.py')
| -rw-r--r-- | scripts/lib/wic/plugins/source/rawcopy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/plugins/source/rawcopy.py b/scripts/lib/wic/plugins/source/rawcopy.py index 071b2d2032..f0691baa91 100644 --- a/scripts/lib/wic/plugins/source/rawcopy.py +++ b/scripts/lib/wic/plugins/source/rawcopy.py | |||
| @@ -62,14 +62,14 @@ class RawCopyPlugin(SourcePlugin): | |||
| 62 | 62 | ||
| 63 | msger.debug('Bootimg dir: %s' % bootimg_dir) | 63 | msger.debug('Bootimg dir: %s' % bootimg_dir) |
| 64 | 64 | ||
| 65 | if ('file' not in source_params): | 65 | if 'file' not in source_params: |
| 66 | msger.error("No file specified\n") | 66 | msger.error("No file specified\n") |
| 67 | return | 67 | return |
| 68 | 68 | ||
| 69 | src = os.path.join(bootimg_dir, source_params['file']) | 69 | src = os.path.join(bootimg_dir, source_params['file']) |
| 70 | dst = src | 70 | dst = src |
| 71 | 71 | ||
| 72 | if ('skip' in source_params): | 72 | if 'skip' in source_params: |
| 73 | dst = os.path.join(cr_workdir, source_params['file']) | 73 | dst = os.path.join(cr_workdir, source_params['file']) |
| 74 | dd_cmd = "dd if=%s of=%s ibs=%s skip=1 conv=notrunc" % \ | 74 | dd_cmd = "dd if=%s of=%s ibs=%s skip=1 conv=notrunc" % \ |
| 75 | (src, dst, source_params['skip']) | 75 | (src, dst, source_params['skip']) |
