-
Notifications
You must be signed in to change notification settings - Fork 29
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
scripts/BuildScripts/FilesystemScripts/buildFilesystem.sh: add /etc/prawnos-release #250
base: master
Are you sure you want to change the base?
Conversation
I'm not sure this is completely necessary. My goal is for all of the installed userspace and kernel items that are prawnOS specific to be packaged. I have nearly reached this just today with almost everything available as a package (some items still need work). The only time a larger upgrade will be required is jumps between debian releases, and in that case the debian release indicates what the core system is based on. If you have any use cases for this @austin987 (or anyone else for that matter) that I'm not seeing, please let me know :) |
I find it useful when testing multiple images/machines, being able at a quick glance to see what image I originally installed. It's also easier to compare tag/revision info than it is several individual package versions. Most distros ship some sort of /etc/*-release file, so it fits well with that scheme. IMO it's also a bit of future proofing, while the data may not be useful now, it's a few bytes and could be useful in the future. But if not, no worries. As I said, mostly helpful if multiple images/versions are in play (a la #248), but I can keep it locally if not desired upstream. |
I understand the desire to have a version in the filesystem. Not sure if the Entering the same info from #248 into the Once PrawnOS has a stronger concept of releases, it might make sense to formally put that info in the prawnos-release file. |
While I agree that the info used to make image and /etc/prawnos-release should match, I'd push for the While you're right that the tag isn't updated until a release, that's fine. As you pointed out, it tells you how far from the last tag is, at a glance (41 commits). Those could be typo fixes or major features, obviously more info is needed, but at a glance it tells you it's not super close to 1.2, which is itself useful info. If you need the exact hash, it's there, 'g76f1e12' means 'git commit 76f1e12'. When 1.3 was built, it should show 1.3 there. The next build would then be 1.3-1-gxxxxx. That said, in my super ideal world, the image name and the image itself would have the branch that built it, and the commit/tag info available, and in a consistent format. That said, I'm happy to work on doing it, we just need to agree on how it should look :). #248/#250 are both independent moves in that info, but as you rightly pointed out, they should be considered/designed together. |
For the locally modified problem, we can use the
|
Looking at it a bit more, two ideas:
|
This seems to mostly be a discussion then about what info is most useful where. We have 2 places we want additional information:
and the information that would be useful to have is:
required informationFrom that, the most "powerful" piece of information is the git sha. It alone can tell you release version and branch. tagged versionsThe version is nice to include as a way to quickly get an idea of when the image is from. Using the output from
branch nameThis is easy enough to add to the generated image filename, but adding it to the ConclusionReally, I want any information included in either the image name or in |
I think the Linux standard used by most distributions is trending towards /etc/os-release, with some also using /etc/lsb_release and/or /etc/issue though I believe Debian also has /etc/debian_release just to be special. |
No description provided.