-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[build_debian] Include checksum of ASIC config files in SONiC filesystem #3384
Conversation
* Adds script to generate checksums for ASIC config files * Adds step to build_debian that copies ASIC config checksum into SONiC filesystem Signed-off-by: Danny Allen daall@microsoft.com
The script could be exchanged to |
This is actually originally how I approached this. The issue is that some of the files in sample are actually just samples, so hashing all of them may have some unintended consequences in the future. In addition, we may include more files in the future, so it seemed a little safer to write a more general script with that in mind. |
retest this please |
…tem (sonic-net#3384) [build_debian] Generate checksum of ASIC config files * Adds script to generate checksums for ASIC config files * Adds step to build_debian that copies ASIC config checksum into SONiC filesystem Signed-off-by: Danny Allen daall@microsoft.com
…tem (#3384) [build_debian] Generate checksum of ASIC config files * Adds script to generate checksums for ASIC config files * Adds step to build_debian that copies ASIC config checksum into SONiC filesystem Signed-off-by: Danny Allen daall@microsoft.com
- What I did
I modified the build_debian.sh script to include a checksum of ASIC configuration files in the
/etc/sonic
directory of the built SONiC image.- How I did it
I wrote a script to read through a static list of configuration files (at this stage, only those found in
sonic-swss/swssconfig/samples
) and generate an MD5 checksum of those configuration files.- How to verify it
Build a new SONiC image and verify that
fsroot/etc/sonic
contains anasic_config_checksum
file.- Description for the changelog
Include checksum of ASIC config files in SONiC filesystem.
- A picture of a cute animal (not mandatory but encouraged)