Skip to content

Commit

Permalink
Merge pull request #806 from openSUSE/swap_reuse
Browse files Browse the repository at this point in the history
[Service] Do not reuse swap partitions in the storage proposal
  • Loading branch information
ancorgs authored Oct 20, 2023
2 parents fa7037f + 0d03f82 commit 12ecc5b
Show file tree
Hide file tree
Showing 4 changed files with 11 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
6 changes: 6 additions & 0 deletions service/package/rubygem-agama.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Oct 20 08:37:22 UTC 2023 - Ancor Gonzalez Sosa <[email protected]>

- Do not reuse pre-existing swap partitions in the storage proposal
(gh#openSUSE/agama#806)

-------------------------------------------------------------------
Tue Oct 10 08:51:45 UTC 2023 - Ladislav Slezák <[email protected]>

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 12ecc5b

Please sign in to comment.