-
Notifications
You must be signed in to change notification settings - Fork 115
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 a way to read PackageConfig
config from an appended partition
#219
Comments
Would you accept a PR along these lines? |
Interesting. I wonder if it you be possible for your use case to achieve this by wrapping Also I know @stapelberg has been tinkering around the idea of a ""gokrazy image generator as a service thing"". The concept of "layering" though, having a base image and inheriting from that and extending (ala. OCI(Docker) Images), is quite interesting to me in general :) |
It does mean that some things are no longer 100% static in the gokrazy configuration, but as long as the set of software doesn't change the SBOM shouldnt be incomplete. The original issue suggests reading environment + args from a different partition, but still statically. The other extreme could be that we support calling some program to compute the args + environment. |
Hey! Sorry for the late reply. I have a design document for the gokrazy image daemon here: https://docs.google.com/document/d/1a7TXSxNgdR9pkz2KdZxG_gF01DTkneNwtDxLDXh8tkM/edit?usp=sharing Here’s the corresponding source: https://github.com/gokrazy/imaged It’s not that polished yet, but contributions are welcome. Let me know if you have any questions on imaged — it should be exactly what you’re looking for. Edit: related discussion: #201 |
Looks good @stapelberg! a few comments:
|
Usecase
As a software vendor of open-source Go software, I would love to be able to provide my software as an easy-to-download gokrazy Raspberry Pi image, with custom configuration (command-line flags, environment) already provided.
Feature request
Heavyweight generation of a customized raspberry pi image (such as via the gokrazy tooling) is a non-starter for something like a package server or CDN. Instead, I was wondering if it would be possible to generate a 'base' image which would be able to read the command-line flags and environment from somewhere at the end of the image, and then the only work for the package server would be yeeting the custom configuration at the end of the byte stream.
I imagine this can be achieved by having a final partition in the image, which is oversized (so we dont need to mess with the MBR/gpt table) and just contains JSON or a zip file or something. It should be trivial to generate this on the fly.
Maybe something like this?
Thoughts?
The text was updated successfully, but these errors were encountered: