Merge pull request #21 from CanonicalLtd/fix_swap_actions
Fix swap support
This commit is contained in:
commit
a114d2cc60
|
@ -97,6 +97,9 @@ class FormatAction(DiskAction):
|
||||||
# fat filesystem require an id of <= 11 chars
|
# fat filesystem require an id of <= 11 chars
|
||||||
if fstype.startswith('fat'):
|
if fstype.startswith('fat'):
|
||||||
self._action_id = self._action_id[:11]
|
self._action_id = self._action_id[:11]
|
||||||
|
# curtin detects fstype as 'swap'
|
||||||
|
elif fstype.startswith('linux-swap'):
|
||||||
|
self._fstype = 'swap'
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def fstype(self):
|
def fstype(self):
|
||||||
|
|
Loading…
Reference in New Issue