s390-bios: Factor finding boot device out of virtio code path
commit7b361db37b18a75860decc0a85e0194936401d66
authorJason J. Herne <jjherne@linux.ibm.com>
Thu, 4 Apr 2019 14:34:30 +0000 (4 10:34 -0400)
committerThomas Huth <thuth@redhat.com>
Fri, 12 Apr 2019 10:40:35 +0000 (12 12:40 +0200)
tree7e6a1401a5f5005a71ab3a84ba7b8e4fd47cfae0
parent930072d2bf30986e57dac5c5945a32492f288944
s390-bios: Factor finding boot device out of virtio code path

Make a new routine find_boot_device to locate the boot device for all
cases, not just virtio.

The error message for the case where no boot device has been specified
and a suitable boot device cannot be auto detected was specific to
virtio devices. We update this message to remove virtio specific wording.

Signed-off-by: Jason J. Herne <jjherne@linux.ibm.com>
Reviewed-by: Farhan Ali <alifm@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <1554388475-18329-12-git-send-email-jjherne@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
pc-bios/s390-ccw/main.c
tests/boot-serial-test.c