Skip to content

Commit

Permalink
Activate devices before probing
Browse files Browse the repository at this point in the history
  • Loading branch information
joseivanlopez committed Aug 2, 2021
1 parent bad5913 commit be8e045
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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 be8e045

Please sign in to comment.