Merge pull request #21 from CanonicalLtd/fix_swap_actions

Fix swap support
This commit is contained in:
Adam Stokes 2015-07-23 16:32:02 -04:00
commit a114d2cc60
1 changed files with 3 additions and 0 deletions

View File

@ -97,6 +97,9 @@ class FormatAction(DiskAction):
# fat filesystem require an id of <= 11 chars
if fstype.startswith('fat'):
self._action_id = self._action_id[:11]
# curtin detects fstype as 'swap'
elif fstype.startswith('linux-swap'):
self._fstype = 'swap'
@property
def fstype(self):