Fix swap support

pyparted uses 'linux-swap(v1)' as the filesystem name to indicate swap files.
Curtin currently recognizes 'swap'.  Update the FormatAction class to emit
'swap' to match curtin.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
This commit is contained in:
Ryan Harper 2015-07-23 15:23:12 -05:00
parent 161764d030
commit ee4c62a7b9
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,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):