bootstrap-vz/base/fs/partitions/gpt_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
297 B
Python

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