Skip to content

Commit

Permalink
Drop task that deletes swap
Browse files Browse the repository at this point in the history
  • Loading branch information
scaronni committed Oct 9, 2023
1 parent 551be65 commit 7b9b594
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions library/blivet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7b9b594

Please sign in to comment.