diff options
Diffstat (limited to 'scripts/lib/wic/utils/partitionedfs.py')
| -rw-r--r-- | scripts/lib/wic/utils/partitionedfs.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index eacf2679d2..8fd44a6a96 100644 --- a/scripts/lib/wic/utils/partitionedfs.py +++ b/scripts/lib/wic/utils/partitionedfs.py | |||
| @@ -227,17 +227,7 @@ class Image: | |||
| 227 | args = ' '.join(args) | 227 | args = ' '.join(args) |
| 228 | msger.debug(args) | 228 | msger.debug(args) |
| 229 | 229 | ||
| 230 | rc, out = exec_native_cmd(args, self.native_sysroot) | 230 | exec_native_cmd(args, self.native_sysroot) |
| 231 | |||
| 232 | if out: | ||
| 233 | msger.debug('"parted" output: %s' % out) | ||
| 234 | |||
| 235 | if rc != 0: | ||
| 236 | # We don't throw exception when return code is not 0, because | ||
| 237 | # parted always fails to reload part table with loop devices. This | ||
| 238 | # prevents us from distinguishing real errors based on return | ||
| 239 | # code. | ||
| 240 | msger.error("WARNING: parted returned '%s' instead of 0 (use --debug for details)" % rc) | ||
| 241 | 231 | ||
| 242 | def __create_partition(self, device, parttype, fstype, start, size): | 232 | def __create_partition(self, device, parttype, fstype, start, size): |
| 243 | """ Create a partition on an image described by the 'device' object. """ | 233 | """ Create a partition on an image described by the 'device' object. """ |
