Skip to content

Commit

Permalink
bsc#1059757: filter out multipath wires from devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilson Souza committed Nov 7, 2017
1 parent ea3716e commit afc5b68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/bootloader/device_map.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def fill_mapping
# mapping entry per disk for the time being (see commented code for the
# real expected behavior)
staging = Y2Storage::StorageManager.instance.staging
staging.disks.each_with_index do |disk, index|
staging.disk_devices.each_with_index do |disk, index|
add_mapping("hd#{index}", disk.name)
end
# rubocop:disable Style/BlockComments
Expand Down
2 changes: 1 addition & 1 deletion src/lib/bootloader/udev_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def udev_to_kernel(dev)
return dev if Yast::Mode.config

devices = Y2Storage::BlkDevice.all(staging)
devices.reject! { |d| d.is?(:disk) && d.descendants.any? { |i| i.is?(:multipath) } }
device = devices.find { |i| i.udev_full_all.include?(dev) }

return device.name if device

# TRANSLATORS: error message, %s stands for problematic device.
Expand Down

0 comments on commit afc5b68

Please sign in to comment.