Skip to content
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

Add option to collect and save provenance data helpful for tracking what was used in a build #49

Open
lionel opened this issue Nov 30, 2023 · 5 comments

Comments

@lionel
Copy link
Contributor

lionel commented Nov 30, 2023

Stuff like the defconfig name, the hash of distro-seed and of the kernel, and of other repositories and other "goes-intos" that are soon lost and/or forgotten. Especially when trying to figure out years down the road what went into producing an image.

@ts-kris
Copy link
Contributor

ts-kris commented Dec 4, 2023

This isn't a bad idea, but some of this already exists in the output image itself (which, IMO is better than a separate file that gets generated, but that doesn't mean a separate file shouldn't be generated).

Kernel hash should be encoded in uname
Most utils packages have their git hash built in*
The actual distro-seed hash AFAIK isn't saved anywhere but would be a nice to have.

(*) The way they are grabbed can be weird depending on how they are grabbed. e.g. with Buildroot, the utils actually end up taking on the hash of the Buildroot repo. I'm not sure what distro-seed ends up with at this time.

@ts-kris
Copy link
Contributor

ts-kris commented Dec 4, 2023

Also, since I'm catching up, this looks like it might be a dup of #45.

@lionel
Copy link
Contributor Author

lionel commented Dec 5, 2023

Watching #45, but I haven't been able to verify all relevant meta-data, e.g. hashes of the kernel and tools.

@lionel
Copy link
Contributor Author

lionel commented Dec 5, 2023

With distro-seed, I'm not seeing the kernel git hash encoded in the uname like it was with 4.9/debian-seed for the TS-71x0 boards. At least in 4.9, the setlocalversion script was involved, IIRC.

@lionel
Copy link
Contributor Author

lionel commented Dec 5, 2023

For "tracing back" to find out what kernel, ts7100-utils, or whatever went into a rootfs, it wasn't clear we needed or wanted that information in the rootfs itself, but rather to hold it back so we have a clue to reference when we're starting with limited information. Also, if some component doesn't come from a public repository, not all useful information may belong in the final image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants