From: Andreas Reichel <[email protected]>

This patch series implements the new fail-safe mode.

As discussed on the mailing list, if fail-safe mode is enabled, only
environments on the boot-device are used. If not, all environments
found are used.
Fail-safe mode is enabled by setting the corresponding flag in ANY
environment on the boot medium.

This series does the following:
        * Add some support functions
        * Rename in_progress to env_status and reimplement in_progress
          from uint8_t to a single bit within this new env_status
          register.
        * Add new failsafe flag into the env_status register.
        * Fix some odd return values in bgenv_set / get, which
          depended on the wrong value given
        * Improve some error handling code
        * Make travis-ci work again
        * Update documentation

Signed-off-by: Andreas Reichel <[email protected]>
Andreas Reichel (16):
  utils: Add sleep function for debugging purpose
  Add StrRStrip function for device path manipulation
  Add check if environment is on boot device
  Print information if environment is on boot dev
  Change implementation of in_progress to flag
  Add new fail-safe mode flag
  Correct config logic to NOT boot if too many partitions found
  New functions for config file open/close/read
  Implement fail-safe mode as config filter
  Simplify config partition management
  Fix return values of bg_setenv with negative values
  Add getter/setter for ENV_STATUS_FAILSAFE flag
  bg_setenv: Add option S to set fail-safe mode
  bg_printenv: Display env_status_flags
  travis-ci: Update .travis.yml to run apt-get update
  Update documentation

 .travis.yml                   |   1 +
 bootguard.c                   |   1 +
 docs/FAILSAFE.md              |  10 +++
 docs/UPDATE.md                |   6 +-
 env/env_api.c                 |   8 +--
 env/env_api_fat.c             |  46 ++++++++++++--
 env/fatvars.c                 | 116 +++++++++++++++++++---------------
 env/syspart.c                 |  90 +++++++++++++++++++++++---
 include/env_api.h             |   1 +
 include/envdata.h             |   5 +-
 include/syspart.h             |   7 +-
 include/utils.h               |   3 +
 main.c                        |   6 ++
 tools/bg_setenv.c             |  20 +++++-
 tools/tests/test_ebgenv_api.c |   6 +-
 utils.c                       |  44 +++++++++++++
 16 files changed, 289 insertions(+), 81 deletions(-)
 create mode 100644 docs/FAILSAFE.md

-- 
2.17.0

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/20180525120108.31055-1-andreas.reichel.ext%40siemens.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to