POC of fallback support for bootstd
Add a mechanism that can be used in conjunction with bootcount to boot
an alternative option should the default option fail a specified number
of times. This would typically be used to ensure fallback to a previous
installation after an upgrade.
This proof of concept requires the addtion of a "fallback" top level
menu item, listing a label and mirroring that of the "default" menu
item. At the moment, the environment should contain the "altbootcmd"
variable which, assuming the "bootcmd" variable is set to:
bootflow scan -lb
Would be set to:
bootmeth set extlinux fallback 1; bootflow scan -lb
Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
Showing
- boot/bootmeth_extlinux.c 71 additions, 1 deletionboot/bootmeth_extlinux.c
- boot/bootmeth_pxe.c 1 addition, 1 deletionboot/bootmeth_pxe.c
- boot/pxe_utils.c 27 additions, 1 deletionboot/pxe_utils.c
- cmd/bootmeth.c 40 additions, 2 deletionscmd/bootmeth.c
- cmd/pxe.c 2 additions, 2 deletionscmd/pxe.c
- cmd/sysboot.c 1 addition, 1 deletioncmd/sysboot.c
- include/bootmeth.h 1 addition, 0 deletionsinclude/bootmeth.h
- include/pxe_utils.h 9 additions, 1 deletioninclude/pxe_utils.h
Loading
Please register or sign in to comment