s390-bios: Use control unit type to find bootable devices
commit2880469c95e42f8a5b0acbe8c4808255cc6c9e5b
authorJason J. Herne <jjherne@linux.ibm.com>
Thu, 4 Apr 2019 14:34:35 +0000 (4 10:34 -0400)
committerThomas Huth <thuth@redhat.com>
Fri, 12 Apr 2019 10:40:35 +0000 (12 12:40 +0200)
tree5358731783b179915062124b119ddec49d2dd554
parentefa47d36da89f4b23c315a7cc085fab0d15eb47c
s390-bios: Use control unit type to find bootable devices

When the user does not specify which device to boot from then we end
up guessing. Instead of simply grabbing the first available device let's
be a little bit smarter and only choose devices that might be bootable
like disk, and not console devices.

Signed-off-by: Jason J. Herne <jjherne@linux.ibm.com>
Message-Id: <1554388475-18329-17-git-send-email-jjherne@linux.ibm.com>
[thuth: Added fix for virtio_is_supported() not being called anymore]
Signed-off-by: Thomas Huth <thuth@redhat.com>
pc-bios/s390-ccw/main.c