Skip to content

Commit

Permalink
[Service] Do not reuse swap partitions in the storage proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
ancorgs committed Oct 20, 2023
1 parent fa7037f commit dca51ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ def space_policy_conversion(target)

# @param target [Y2Storage::ProposalSettings]
def volumes_conversion(target)
target.swap_reuse = :none

volumes = settings.volumes.map { |v| VolumeConversion.to_y2storage(v) }
disabled_volumes = missing_volumes.map do |volume|
VolumeConversion.to_y2storage(volume).tap { |v| v.proposed = false }
Expand Down
3 changes: 2 additions & 1 deletion service/package/gem2rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
Requires: yast2-installation
Requires: yast2-network
Requires: yast2-proxy
Requires: yast2-storage-ng >= 4.6.10
# ProposalSettings#swap_reuse
Requires: yast2-storage-ng >= 5.0.3
Requires: open-iscsi
Requires: yast2-iscsi-client >= 4.5.7
Requires: yast2-users
Expand Down

0 comments on commit dca51ce

Please sign in to comment.