preinit-mounts: Add check for overlay file errors

In some instances when the built image has files in /etc/ that were moved
or renamed from previous builds, a code update to this new image causes
the overlay to appear corrupted. This has also been seen when downgrading
to a level with older kernel and systemd versions, although the root
cause remain unknown.

This change 'fixes' the symptom, by re-creating the overlay if it detects
an error accessing a file.

Tested: Verified the system mounts the overlay successful on a code update
        path known to fail.

Change-Id: Ib26ac91fef76f5e0123820b2e30905fd36e9b7ee
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
1 file changed
tree: 8937c3d83f9260bb4b5989bee9b76a147f87db3d
  1. aspeed-layer/
  2. classes/
  3. conf/
  4. nuvoton-layer/
  5. raspberrypi/
  6. recipes-connectivity/
  7. recipes-core/
  8. recipes-devtools/
  9. recipes-extended/
  10. recipes-graphics/
  11. recipes-phosphor/
  12. recipes-protocols/
  13. recipes-support/
  14. recipes-textproc/
  15. recipes-x86/
  16. COPYING.apache-2.0
  17. COPYING.MIT
  18. LICENSE
  19. MAINTAINERS
  20. README.md
  21. recipes.txt
README.md

OpenBMC

meta-phosphor is the OpenBMC layer. This layer should be included for all OpenBMC systems. The OpenBMC layer contains content which is shared between all OpenBMC systems.