Closed mine260309 closed 6 years ago
The root cause is because in above step 2, the version id is created at MEDIA_DIR
, e.g. /media/rofs-26ec4dcd/etc/
, and it is in rwfs, which means it is persistent.
After code update (where rwfs is not updated), the dir remains and thus is still used by processBMCImage()
, and the version string in the path is used as the version id.
@anoo1 I believe the MEDIA_DIR
is expected to be in tmpfs
instead of rwfs
, is it?
If yes, the fix could be make MEDIA_DIR
and BMC_ROFS_PREFIX
as configure arguments, and configure them as tmpfs path for static flash layout.
@anoo1 I believe the MEDIA_DIR is expected to be in tmpfs instead of rwfs, is it?
Right, the directories in MEDIA_DIR are re-created every time the bmc boots based on volumes that are present on the bmc.
The version id is generated by BMC's version
sha512sum | cut -b 1-8
.However, on static flash layout systems, the version id is not updated after code update. Steps to reproduce:
26ec4dcd
;0e7213e4
;26ec4dcd
.