mirror of https://git.48k.eu/ogclient
live: report LINUX-SWAP instead of SWAP
ogCP expects LINUX-SWAP to specify a swap filesystem. Add a similar workaround to the one that is done for VFAT for symmetry between inputs and outputs that circulate over the API.master v1.3.2-8
parent
1ca3639389
commit
9ffe1c81bf
|
@ -102,6 +102,9 @@ class OgLiveOperations:
|
|||
if (part_setup['filesystem'] == 'VFAT'):
|
||||
part_setup['filesystem'] = 'FAT32'
|
||||
|
||||
if (part_setup['filesystem'] == 'SWAP'):
|
||||
part_setup['filesystem'] = 'LINUX-SWAP'
|
||||
|
||||
def _refresh_part_setup_cache(self, cxt, pa, part_setup, cache):
|
||||
padev = cxt.partition_to_string(pa, fdisk.FDISK_FIELD_DEVICE)
|
||||
if padev == cache:
|
||||
|
|
Loading…
Reference in New Issue