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 authored and richm committed Oct 17, 2023
1 parent fccfa38 commit 71b700b
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 71b700b

Please sign in to comment.