Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rene
Copy link
Contributor

@rene rene commented Sep 9, 2025

Description

The build procedure for the package pkg/external-boot-image was changed recently and started to use Dockerfile.in to generate the final Dockerfile. Also, the tarball produced by this package is generated under the same package directory. This broke the pushing of the image because linuxkit will always mark the repository as dirty since it considers the Dockerfile and the tarball as changes in the sources. For instance, in the current state every time pkg/external-boot-image is built we got a dirty hash:

lfedge/eve-external-boot-image:7e86027ed410a803a1c7d0c9f17dc98447f96c7f-dirty-c5eadef

This can be easily fixed by just adding both Dockerfile and the generated tarball to .gitignore.

How to test and validate this PR

  1. Build pkg/external-boot-image (make pkg/external-boot-image)
  2. Ensure the package has a valid tag (not dirty). For instance:
docker.io/lfedge/eve-external-boot-image:7e86027ed410a803a1c7d0c9f17dc98447f96c7f

Changelog notes

None

PR Backports

No needs since the issue it's only on master.

Checklist

  • I've provided a proper description
  • I've added the proper documentation
  • I've tested my PR on amd64 device
  • I've tested my PR on arm64 device
  • I've written the test verification instructions
  • I've set the proper labels to this PR
  • I've checked the boxes above, or I've provided a good reason why I didn't
    check them.

The build procedure for the package pkg/external-boot-image was changed
recently and started to use Dockerfile.in to generate the final Dockerfile.
Also, the tarball produced by this package is generated under the same
package directory. This broke the pushing of the image because linuxkit
will always mark the repository as dirty since it considers the Dockerfile
and the tarball as changes in the sources. For instance, in the current
state every time pkg/external-boot-image is built we got a dirty hash:

lfedge/eve-external-boot-image:7e86027ed410a803a1c7d0c9f17dc98447f96c7f-dirty-c5eadef

This can be easily fixed by just adding both Dockerfile and the generated
tarball to .gitignore.

Signed-off-by: Renê de Souza Pinto <[email protected]>
@rene rene requested a review from eriknordmark as a code owner September 9, 2025 09:07
@rene rene added the bug Something isn't working label Sep 9, 2025
conf/device.key.pem
conf/soft_serial
pkg/kube/external-boot-image.tar
pkg/external-boot-image/build.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this file is not generated anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, it is not.

@OhmSpectator OhmSpectator merged commit c4d1a37 into lf-edge:master Sep 9, 2025
41 of 47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants