[PATCH openbmc 0/7] initfs: check and auto-repair read/write file system

OpenBMC Patches openbmc-patches at stwcx.xyz
Sun Feb 7 11:00:14 AEDT 2016


This series of patches to the obmc init, shutdown, and update scripts adds several features, including

Run fsck on the read write filesystem before mounting.
More information on what to do and options when init fails
Consistent location of update images even during init repair cases

Plus these developer features
All mount arguments consolidated into variables
Clean unmount when testing rofs image in RAM (from the /run file system)
Other clean ups

This second version has 1 update over the first version #165.  The prior version had
mistakenly used rodir for both device and directory options to mount in "use variables" patch.  I had caught and corrected when moving the line up in the "run fsck" patch but missed the same error occurred in the prior location.

i've now done a boot and shutdown test on each of the patches and an update of u-boot-env on most of them.  In addition I've used the penultimate and final version several times including the debug-init-sh option and the failed to fsck path and done end-to-end image-rwfs update with preserved files.


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

Milton Miller (7):
  obmc-initfs: minor updates
  obmc-initfs: look for images in /run/initramfs/image-
  obmc-initfs: use varables for paths and mount arguments
  obmc-initfs: factor debug and takeover
  obmc-initfs: run fsck on read/write file system
  obmc-initfs: run update as a sub-script
  obmc-initfs: shutdown when rofs is a loop mounted image in /run

 .../obmc-phosphor-initfs/files/obmc-init.sh        | 91 +++++++++++++++++-----
 .../obmc-phosphor-initfs/files/obmc-shutdown.sh    | 22 ++++--
 .../obmc-phosphor-initfs/files/obmc-update.sh      | 59 +++++++-------
 3 files changed, 114 insertions(+), 58 deletions(-)

-- 
2.6.4




More information about the openbmc mailing list