mopts = filter(
lambda p: p.startswith('Default mount options:'),
tune2fs('-l', orig_dev[i]).splitlines()
- )[0].split(':')[1].strip().split()
+ )[0].split(':')[1].strip().split()
if not (len(mopts) == 1 and mopts[0] == '(none)'):
for opt in mopts:
err_msg = \
"Unable to execute the system preparation tasks."
if not image.mounted:
- d.msgbox("%s Couldn't mount the media." % err_msg,
+ d.msgbox(
+ "%s Couldn't mount the media." % err_msg,
title="System Preperation", width=SMALL_WIDTH)
return
elif image.mounted_ro:
- d.msgbox("%s Couldn't mount the media read-write."
+ d.msgbox(
+ "%s Couldn't mount the media read-write."
% err_msg, title="System Preperation",
width=SMALL_WIDTH)
return
return struct.calcsize(GPTPartitionTable.GPTHeader.format)
def __str__(self):
- """Print a GPTHeader"""
+ """Print a GPTHeader"""
return "Signature: %s\n" % self.signature + \
"Revision: %r\n" % self.revision + \
"Header Size: %d\n" % self.hdr_size + \