Skip to content

Commit

Permalink
s390 secure boot: enhance disk type detection to cover multipath (bsc…
Browse files Browse the repository at this point in the history
…#1171821)
  • Loading branch information
wfeldt committed May 25, 2020
1 parent 414d9d0 commit 2a99939
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/bootloader/systeminfo.rb
Expand Up @@ -139,10 +139,10 @@ def zipl_device
#
# @return [Boolean] true if device is a SCSI device
def scsi?(device)
# in lack of a better idea: check if device name starts with 'sd'
# alternatively: device.udev_ids.any?(/^scsi-/)
# or: device.udev_paths.any?(/-zfcp-/)
device.name.start_with?("/dev/sd")
# checking if device name starts with 'sd' is not enough: it could
# be a device mapper target (e.g. multipath)
# see bsc#1171821
device.name.start_with?("/dev/sd") || device.udev_ids.any?(/^scsi-/)
rescue StandardError
false
end
Expand Down

0 comments on commit 2a99939

Please sign in to comment.