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
OpenGnSys Support Team 2024-05-07 11:53:32 +02:00
parent 1ca3639389
commit 9ffe1c81bf
1 changed files with 3 additions and 0 deletions

View File

@ -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: