[PATCH V3] Add device hierarchy to ncurses ui
Samuel Mendoza-Jonas
sam.mj at au1.ibm.com
Wed Jul 16 16:23:58 EST 2014
This patch groups boot options under their respective devices to
make differentiating similarly named boot options easier.
Example:
Petitboot (20140702-g9b21c915)
────────────────────────────────────────────────────────────────────────────────
[Disk: dm-1 / 67ea9766-00dd-45ce-9db3-219e02e72d10]
Fedora, with Linux 0-rescue-462207c14ff045f59fd3af13555152e4
[Interface: em1 / 3c:97:0e:c6:50:e1]
netboot
System information
System configuration
Rescan devices
*Exit to shell
v3:
- compare device pointers rather than names
- style improvements
v2:
- Merged patches into one
- Moved finding device out to separate function
- syntax/style fixes
Samuel Mendoza-Jonas (1):
ui/ncurses: Add device hierarchy
ui/ncurses/nc-cui.c | 47 +++++++++++++---
ui/ncurses/nc-menu.c | 155 +++++++++++++++++++++++++++++++++++++++++++++++++++
ui/ncurses/nc-menu.h | 4 ++
3 files changed, 197 insertions(+), 9 deletions(-)
--
1.9.3
More information about the Petitboot
mailing list