pc-bios/s390-ccw: fix non-sequential boot entries (enum)
commit622b39178057289a1c8c1b5148f513e658e90ea1
authorCollin Walling <walling@linux.ibm.com>
Mon, 16 Apr 2018 16:56:10 +0000 (16 12:56 -0400)
committerThomas Huth <thuth@redhat.com>
Wed, 2 May 2018 09:27:14 +0000 (2 11:27 +0200)
treeaba08167d9ab7a7d0fcbced19ac6b40c9b381217
parent7385e947fc65a44dd05abb86c874beb915c1989c
pc-bios/s390-ccw: fix non-sequential boot entries (enum)

zIPL boot menu entries can be non-sequential. Let's account
for this issue for the s390 enumerated boot menu. Since we
can no longer print a range of available entries to the
user, we have to present a list of each available entry.

An example of this menu:

  s390-ccw Enumerated Boot Menu.

   [0] default

   [1]
   [2]
   [7]
   [8]
   [9]
  [11]
  [12]

  Please choose:

Signed-off-by: Collin Walling <walling@linux.ibm.com>
Reported-by: Vasily Gorbik <gor@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
pc-bios/s390-ccw/bootmap.c
pc-bios/s390-ccw/menu.c
pc-bios/s390-ccw/s390-ccw.h