bootstrap-vz/base/fs/partitions/msdos_swap.py
Anders Ingemann 889812b1ad Rename MBR partition table to MSDOS
Calling it MBR is just confusing
2014-01-18 23:27:52 +01:00

11 lines
306 B
Python

from common.tools import log_check_call
from msdos import MSDOSPartition
class MSDOSSwapPartition(MSDOSPartition):
def __init__(self, size, previous):
super(MSDOSSwapPartition, self).__init__(size, 'swap', previous)
def _before_format(self, e):
log_check_call(['/sbin/mkswap', self.device_path])