[PATCH 0/7] Implement ordered boot options

Samuel Mendoza-Jonas sam.mj at au1.ibm.com
Wed Apr 1 11:40:59 AEDT 2015


This series of patches updates the autoboot device semantics. Where previously
a single boot device could be specified for autoboot, now multiple specific
devices or general device types can be selected and ordered by relative
priority.

In particular it replaces the boot_priority format with an array of
autoboot_options which are read from the new petitboot,bootdevs parameter and
can be manipulated by the user via an updated configuration screen.

Samuel Mendoza-Jonas (7):
  lib: Define autoboot_options, device_type helpers
  discover: Add support for multiple bootdev arguments
  ui/ncurses: Add nc_widget_subset
  ui/ncurses: Add nc-subset selection screen
  ui/ncurses: Use sorted field navigation
  petitboot: Implement ordered boot options
  ui/ncurses: Update config screen help text

 discover/device-handler.c     |  54 +++---
 discover/platform-powerpc.c   | 156 +++++++++++++++---
 discover/platform.c           |  49 ++----
 lib/Makefile.am               |   1 +
 lib/pb-config/pb-config.c     |  26 +--
 lib/pb-protocol/pb-protocol.c |  55 ++++---
 lib/types/types.c             |  51 ++++++
 lib/types/types.h             |  26 +--
 ui/ncurses/Makefile.am        |   4 +-
 ui/ncurses/nc-config-help.c   |  27 +--
 ui/ncurses/nc-config.c        | 334 ++++++++++++++++++++++++-------------
 ui/ncurses/nc-cui.c           |  24 +++
 ui/ncurses/nc-cui.h           |   3 +
 ui/ncurses/nc-scr.h           |   1 +
 ui/ncurses/nc-subset.c        | 289 ++++++++++++++++++++++++++++++++
 ui/ncurses/nc-subset.h        |  36 ++++
 ui/ncurses/nc-widgets.c       | 374 +++++++++++++++++++++++++++++++++++++++++-
 ui/ncurses/nc-widgets.h       |  19 +++
 utils/pb-config.c             |  11 +-
 19 files changed, 1280 insertions(+), 260 deletions(-)
 create mode 100644 lib/types/types.c
 create mode 100644 ui/ncurses/nc-subset.c
 create mode 100644 ui/ncurses/nc-subset.h

-- 
2.1.0



More information about the Petitboot mailing list