summaryrefslogtreecommitdiffstats
path: root/src/live
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-05-07 11:53:32 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-05-07 11:54:39 +0200
commit9ffe1c81bf611c9321e0c093229fb19eaa5c12d2 (patch)
tree280a6db774f1c9108c04bc3849ef7ab448523d1a /src/live
parent1ca3639389ed116424ad5567403e09f18af74b87 (diff)
live: report LINUX-SWAP instead of SWAPv1.3.2-8
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.
Diffstat (limited to 'src/live')
-rw-r--r--src/live/ogOperations.py3
1 files changed, 3 insertions, 0 deletions
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: