Skip to content

Commit

Permalink
kill #checkUsedStorage completely
Browse files Browse the repository at this point in the history
  • Loading branch information
wfeldt committed Mar 3, 2017
1 parent 1d859f6 commit 8007be0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
11 changes: 0 additions & 11 deletions src/modules/Bootloader.rb
Expand Up @@ -63,15 +63,6 @@ def testAbort
UI.PollInput == :abort
end

# bnc #419197 yast2-bootloader does not correctly initialise libstorage
# Function try initialize yast2-storage
# if other module used it then don't continue with initialize
# @return [Boolean] true on success

def checkUsedStorage
true
end

# Export bootloader settings to a map
# @return bootloader settings
def Export
Expand Down Expand Up @@ -143,8 +134,6 @@ def Read
return false if testAbort

Progress.NextStage
return false if !checkUsedStorage

BootStorage.detect_disks

Progress.NextStage
Expand Down
1 change: 0 additions & 1 deletion test/test_helper.rb
Expand Up @@ -87,7 +87,6 @@ def mock_disk_partition
allow(::Bootloader::UdevMapping).to receive(:to_mountby_device) { |d| d }
allow(::Bootloader::UdevMapping).to receive(:to_kernel_device) { |d| d }
allow(::Bootloader::Stage1Device).to receive(:new) { |d| double(real_devices: [d]) }
allow(::Yast::Bootloader).to receive(:checkUsedStorage).and_return(true)
allow(Yast::BootStorage).to receive(:detect_disks) # do not do real disk detection
end
end

0 comments on commit 8007be0

Please sign in to comment.