commit | dcfadad5acc06010ef3b58004ca36833e0e316f1 | [log] [tgz] |
---|---|---|
author | Adriana Kobylak <anoo@us.ibm.com> | Tue May 23 20:41:38 2023 +0000 |
committer | Adriana Kobylak <anoo@linux.ibm.com> | Mon Jun 05 20:18:52 2023 +0000 |
tree | e523f0e8fb6eb4557b4d9b9751383c7b35798cd4 | |
parent | b36a3ebfa48a18eff75b9b1b0c27bb068d998237 [diff] |
mmc: Run fsck on the alternate image and hostfw Before mounting the alternate image, run fsck on it to determine if the filesystem is corrupted, this could happen if the BMC rebooted in the middle of a code update for example. Invalidate the image if it's found to be corrupted. Run fsck on the hostfw partition too, this is a writable partition that can benefit from autocorrection. The mmc initramfs runs fsck on the rwfs partition already. It's a good practice to run fsck on writable partitions. Do not fail if fsck fails on the hostfw partition, if it's corrupted, an error would occur during the power on. Tested: Verified there were no errors with this change. This change adds about 1s to the execution of the mount service, from 5s to 6s to start: May 24 19:07:27 p10bmc systemd[1]: Starting Mount BMC rofs volumes after a reboot... May 24 19:07:27 p10bmc obmc-flash-bmc[328]: /dev/disk/by-partlabel/rofs-a: clean, 6430/68816 files, 192421/275012 blocks May 24 19:07:27 p10bmc kernel: EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. Quota mode: disabled. May 24 19:07:33 p10bmc fsck.ext4[474]: hostfw: clean, 247/655360 files, 196363/1310720 blocks May 24 19:07:34 p10bmc kernel: EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Quota mode: disabled. May 24 19:07:34 p10bmc systemd[1]: obmc-flash-mmc-mount.service: Deactivated successfully. May 24 19:07:34 p10bmc systemd[1]: Finished Mount BMC rofs volumes after a reboot. Change-Id: I0efedb6d72e1d0d6018974598c4b361eafe7441b Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Phosphor BMC Code Management provides a set of system software management applications. More information can be found at Software Architecture
To build this package, do the following steps:
meson build
ninja -C build
To clean the repository run rm -r build
.