bootstrap-vz/base/fs/partitions/mbr_swap.py
Anders Ingemann d6502089e2 Implemented both MBR and GPT partitioning.
VirtualBox seems to not like GPT
2013-10-27 18:11:14 +01:00

11 lines
289 B
Python

from common.tools import log_check_call
from mbr import MBRPartition
class MBRSwapPartition(MBRPartition):
def __init__(self, size, previous):
super(MBRSwapPartition, self).__init__(size, 'swap', previous)
def _format(self, e):
log_check_call(['/sbin/mkswap', self.device_path])