Skip to content

Commit

Permalink
adapt to latest storage-ng proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Apr 27, 2018
1 parent 56a6a53 commit 67e39d4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/include/installation/inst_inc_all.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# $Id$
#

require "storage"
require "y2storage"

module Yast
module InstallationInstIncAllInclude
Expand Down Expand Up @@ -241,13 +241,7 @@ def SetDiskActivationModule
# disable disks activation if not needed
iscsi = Linuxrc.InstallInf("WithiSCSI") == "1"
fcoe = Linuxrc.InstallInf("WithFCoE") == "1"
no_disk = begin
::Storage.light_probe
rescue ::Storage::Exception => e
Builtins.y2milestone("light probe failed with #{e}")
# is it safer when problem appear to act like there is no disk
true
end
no_disk = !::Y2Storage::StorageManager.instance.devices_for_installation?

if !((Arch.s390 && !Arch.is_zkvm) || iscsi || fcoe || no_disk)
Builtins.y2milestone("Disabling disk activation module")
Expand Down

0 comments on commit 67e39d4

Please sign in to comment.