If the disk has no valid label we get an error like
Error: /dev/sdi: unrecognised disk label
Assume any error we get is that and go with an id label of 1.
Signed-off-by: Sage Weil <sage@inktank.com>
],
)
except subprocess.CalledProcessError as e:
- raise PrepareError('cannot read partition index', e)
+ print 'cannot read partition index; assume it isn\'t present\n'
+ return 1
if not lines:
raise PrepareError('parted failed to output anything')