220
220
return { TYPE_EXT2: 'ext2', TYPE_EXT3: 'ext2', TYPE_XFS: 'ext2', TYPE_SWAP: 'linux-swap(new)' }[self.type]
227
return { TYPE_EXT2: 'ext2', TYPE_EXT3: 'ext2', TYPE_XFS: 'xfs', TYPE_SWAP: '' }[self.type]
223
230
"""Adds partition to the disk image (does not mkfs or anything like that)"""
224
231
logging.info('Adding type %d partition to disk image: %s' % (self.type, disk.filename))