Skip to content

Commit

Permalink
Merge pull request #973 from joseivanlopez/sp2-to-sp3
Browse files Browse the repository at this point in the history
Activate devices (SLE-15-SP3)
  • Loading branch information
joseivanlopez committed Aug 2, 2021
2 parents 10a0d2d + 585e421 commit 0a258de
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions package/yast2-installation.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Aug 2 14:31:22 UTC 2021 - José Iván López González <jlopez@suse.com>

- Activate devices before probing (bsc#1187220).
- 4.3.41

-------------------------------------------------------------------
Tue Jun 8 08:28:28 UTC 2021 - Knut Anderssen <kanderssen@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-installation.spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

Name: yast2-installation
Version: 4.3.40
Version: 4.3.41
Release: 0
Group: System/YaST
License: GPL-2.0-only
Expand Down
6 changes: 5 additions & 1 deletion src/lib/installation/clients/inst_disks_activate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ def main
end
end

Y2Storage::StorageManager.instance.probe if @disks_changed
if @disks_changed
storage = Y2Storage::StorageManager.instance
storage.activate
storage.probe
end

Builtins.y2debug("ret=%1", @ret)

Expand Down
1 change: 1 addition & 0 deletions test/inst_disks_activate_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
allow(Yast::Linuxrc).to receive(:InstallInf).with("WithFCoE").and_return("0")
allow(Yast::UI).to receive(:UserInput).and_return(:abort)

allow(Y2Storage::StorageManager.instance).to receive(:activate)
allow(Y2Storage::StorageManager.instance).to receive(:probe)

allow(Yast::SCR).to receive(:Read).with(path(".probe.disk"))
Expand Down

0 comments on commit 0a258de

Please sign in to comment.