From 9ffe1c81bf611c9321e0c093229fb19eaa5c12d2 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Tue, 7 May 2024 11:53:32 +0200 Subject: 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. --- src/live/ogOperations.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index f0c30bf..b7208f6 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -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: -- cgit v1.2.3-18-g5258