From 8e19d6080dc6a4e9128e25c3ada79f5b2523cc9a Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 28 Aug 2023 22:54:22 +0200 Subject: [PATCH] mount: use False as default for "claimed" The regular tests would fail, because the sample global configuration does not set the "claimed" value of a partition. --- src/modules/mount/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/mount/main.py b/src/modules/mount/main.py index 235b67060..a07016f35 100644 --- a/src/modules/mount/main.py +++ b/src/modules/mount/main.py @@ -330,7 +330,7 @@ def run(): _("No partitions are defined for
{!s}
to use.").format("mount")) # Find existing swap partitions that are part of the installation and enable them now - swap_devices = [p['device'] for p in partitions if (p['fs'] == 'linuxswap' and p['claimed'])] + swap_devices = [p["device"] for p in partitions if (p["fs"] == "linuxswap" and p.get("claimed", False))] enable_swap_partition(swap_devices)