[PATCH openbmc 0/7] Update flash update to be useable at runtime.

OpenBMC Patches openbmc-patches at stwcx.xyz
Tue May 24 11:30:33 AEST 2016


The underlying storage for a file system can not be updated when it is in use.  The initial solution was to update the flash as the system was being shutdown, with output to the console.

Updates were made to the init script that allows the flash to not be used for a given boot but the update script was not enhanced to make this user friendly, and no documentation was provided to prepare the system for this mode.

This series partially addresses #293 by enhancing the update script to 
1. provide more fine grained checks on update conflicts
2. provide additional checks that would cause failures
3. allow the flash to be updated at runtime if the in-use image is not in flash.

I anticipate adding options to allow init to have some options in the initramfs and get further from the command line.

This series is still in RFC state and has not been tested.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/openbmc/openbmc/297)
<!-- Reviewable:end -->


https://github.com/openbmc/openbmc/pull/297

Milton D. Miller II (7):
  initfs: shutdown: comment on update success
  initfs: Store whiltelist in a directory of files
  initfs: update: Don't exec sh or sulogin on error just exit 1
  initfs: update: no error if no files to copy to ram
  initfs: update: add option to perform checks but skip actual update
  initfs: update: check individual mtd partitions for mounts
  initfs: update: add check for image size vs mtd size

 .../obmc-phosphor-initfs/files/obmc-init.sh        |   2 +-
 .../obmc-phosphor-initfs/files/obmc-shutdown.sh    |   8 ++
 .../obmc-phosphor-initfs/files/obmc-update.sh      | 114 +++++++++++++++------
 .../obmc-phosphor-initfs/obmc-phosphor-init.bb     |   5 +-
 4 files changed, 94 insertions(+), 35 deletions(-)

-- 
2.8.3




More information about the openbmc mailing list