Re: [systemd-devel] /etc/os-release but for images

2022-03-24 Thread Lennart Poettering
On Mi, 23.03.22 17:14, Davide Bettio (davide.bet...@secomind.com) wrote: > I opened this PR: https://github.com/systemd/systemd/pull/22841 > > This doesn't enable full semver support since that would require allowing > A-Z range, but I'm not sure if it is something we really want to enable >

Re: [systemd-devel] /etc/os-release but for images

2022-03-23 Thread Davide Bettio
Hello, Il giorno mer 23 mar 2022 alle ore 13:56 Lennart Poettering < lenn...@poettering.net> ha scritto: > > Also sadly IMAGE_VERSION doesn't allow + which is used from semver for > > build metadata (such as 1.0.0+21AF26D3 or 1.0.0+20130313144700). > > Ah, interesting. This looks like something

Re: [systemd-devel] /etc/os-release but for images

2022-03-23 Thread Lennart Poettering
On Mi, 23.03.22 13:38, Davide Bettio (davide.bet...@secomind.com) wrote: > > That's the idea: take the packages, build an image, and then append > > IMAGE_ID/IMAGE_VERSION to it? > > Sure, sounds pretty convenient, here my point was about blindly appending > those additional fields (trusting the

Re: [systemd-devel] /etc/os-release but for images

2022-03-23 Thread Davide Bettio
Hello, Il giorno mer 23 mar 2022 alle ore 11:32 Lennart Poettering < lenn...@poettering.net> ha scritto: > On Mi, 23.03.22 10:51, Davide Bettio (davide.bet...@secomind.com) wrote: > > Well, if the distribution people build both packages and disk images, > they can set IMAGE_ID/IMAGE_VERSION for

Re: [systemd-devel] /etc/os-release but for images

2022-03-23 Thread Lennart Poettering
On Mi, 23.03.22 10:51, Davide Bettio (davide.bet...@secomind.com) wrote: > Hello, > > First of all, thanks for your answers. > > It wasn't really clear to me that the /etc/os-release file was editable > from a 3rd party other than the distribution maintainers, so thanks for the > clarifications.

Re: [systemd-devel] /etc/os-release but for images

2022-03-23 Thread Davide Bettio
Hello, First of all, thanks for your answers. It wasn't really clear to me that the /etc/os-release file was editable from a 3rd party other than the distribution maintainers, so thanks for the clarifications. Are the distributions required to leave IMAGE_ID and IMAGE_VERSION empty? Can I safely

Re: [systemd-devel] /etc/os-release but for images

2022-03-22 Thread Lennart Poettering
On Di, 22.03.22 17:10, Davide Bettio (davide.bet...@secomind.com) wrote: > Hello, > > I would like to figure out if anyone has proposed any kind of standard for > storing metadata about a system image. The IMAGE_ID= and IMAGE_VERSION= fields from /etc/os-release are supposed to be used for that.

Re: [systemd-devel] /etc/os-release but for images

2022-03-22 Thread Christopher Obbard
Hi Davide, On 22/03/2022 16:10, Davide Bettio wrote: I would like to figure out if anyone has proposed any kind of standard for storing metadata about a system image. We need to track metadata about an image that has been flashed to a device. /etc/os-release is really good for tracking

[systemd-devel] /etc/os-release but for images

2022-03-22 Thread Davide Bettio
Hello, I would like to figure out if anyone has proposed any kind of standard for storing metadata about a system image. We need to track metadata about an image that has been flashed to a device. /etc/os-release is really good for tracking information about the operating system, but it doesn't