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 7333477
Show file tree
Hide file tree
Showing 3 changed files with 5 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
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
expect(y2storage_settings).to have_attributes(
candidate_devices: contain_exactly("/dev/sda", "/dev/sdb"),
root_device: "/dev/sda",
swap_reuse: :none,
lvm: true,
separate_vgs: true,
lvm_vg_reuse: false,
Expand Down

0 comments on commit 7333477

Please sign in to comment.