You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
Names of cloud images are not a reliable source of information when it comes to identifying the operating system. These names are not standardized across cloud providers or operating systems themselves (see #615). However, every Linux distribution provides the standardized/etc/os-release file that contains operating system identification data. For example:
I think that Cloud Image Directory should use ID, VERSION_ID and VARIANT_ID in the API and extend the image data with NAME, VERSION, VARIANT and PRETTY_NAME. That would automatically take care of sorting cloud images by products and it would work by default for all cloud providers and Linux distributions provided by CID.
Drawbacks
Getting the content of the /etc/os-release file from a cloud image probably requires to run an instance of this image. That can be expensive. However, the content of this file should be predictable and constant, so there should be some space for assumptions and heuristics, that can be later verified with image tests. Another option is to somehow integrate the collection of image data directly into the image tests that are going to be run anyway.
Names of cloud images are not a reliable source of information when it comes to identifying the operating system. These names are not standardized across cloud providers or operating systems themselves (see #615). However, every Linux distribution provides the standardized
/etc/os-release
file that contains operating system identification data. For example:I think that Cloud Image Directory should use
ID
,VERSION_ID
andVARIANT_ID
in the API and extend the image data withNAME
,VERSION
,VARIANT
andPRETTY_NAME
. That would automatically take care of sorting cloud images by products and it would work by default for all cloud providers and Linux distributions provided by CID.Drawbacks
/etc/os-release
file from a cloud image probably requires to run an instance of this image. That can be expensive. However, the content of this file should be predictable and constant, so there should be some space for assumptions and heuristics, that can be later verified with image tests. Another option is to somehow integrate the collection of image data directly into the image tests that are going to be run anyway.Benefits
The text was updated successfully, but these errors were encountered: