From 7b9b59447082eb802daa302afd7d7d8e2bf8c4b6 Mon Sep 17 00:00:00 2001 From: Simone Caronni Date: Mon, 9 Oct 2023 14:14:58 +0200 Subject: [PATCH] Drop task that deletes swap --- library/blivet.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/library/blivet.py b/library/blivet.py index 5e03a9d8..6b2b8673 100644 --- a/library/blivet.py +++ b/library/blivet.py @@ -1647,8 +1647,6 @@ def handle_new_mount(volume, fstab): # handle removal of existing mounts of this volume if mount and mount['fs_type'] != 'swap' and mount['mount_point'] != volume['mount_point']: replace = dict(path=mount['mount_point'], state="absent") - elif mount and mount['fs_type'] == 'swap': - replace = dict(src=mount['device_id'], fstype="swap", path="none", state="absent") return mounted, replace