mirror of
https://github.com/Telecominfraproject/ols-nos.git
synced 2025-10-30 01:32:35 +00:00
The issu-version file for Mellanox is generated from the Mellanox SDK libraries. The SDK is installed into a Buster docker container, but the issu-version file goes onto the base OS, which is Bullseye. To work around this, the issu-version build rules explicitly copies the issu-version file to target/files/bullseye/ during the Buster build. Because of our build infra, if caching is enabled and a cache is being used, then for issu-version, since it is technically built as part of Buster, then only target/files/buster/issu-version is saved into the cache, and target/files/bullseye/issu-version isn't cached. If this cache gets used, then target/files/bullseye/issu-version is missing, and the final image build fails. This is to work around the current build issue where Mellanox builds are failing. This is so that issu-version is always "built", so that copy is made into the bullseye directory. Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>