mmc-init: Run fsck.ext4 on the rwfs device

It's a good practice to run fsck before mounting a device. Call
fsck.ext4 -p on the read-write device, this option attempts to
fix any error that can be fixed safely without user intervention.
No need to check for the return code, if it fails then the mount
command will likely fail.

It also takes no time to run:

mount read-only -> fsck read-write -> mount read-write:

[    4.174115] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. Opts: (null)
rwfs: clean, 11/917504 files, 81919/1835008 blocks
[    4.185143] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)

Change-Id: I6f1427d099e8ee0e9e33956189b1c6410e22b3f1
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
1 file changed
tree: 803fece507a58d1208c826fe1bede10c02ab6f23
  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.