<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 11, 2015 at 5:43 PM, Fabian Deutsch <span dir="ltr">&lt;<a href="mailto:fdeutsch@redhat.com" target="_blank">fdeutsch@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey,<br>
<br>
I&#39;d like to make it easier to discover what oVirt release is<br>
installed, and what potential variant (i.e Node) is used.<br>
Currently we are using some Node specific files to identify this &quot;variant&quot;.<br>
<br>
With this patch [0] I&#39;m suggesting to add the /etc/ovirt-release file,<br>
with the following contents:<br>
<br>
NAME=oVirt<br>
ID=ovirt<br>
VERSION=&quot;4.0 (master)&quot;<br>
VERSION_ID=4.0<br>
PRETTY_NAME=&quot;oVirt 4.0&quot;<br>
CPE_NAME=&quot;cpe:/a:ovirtproject:ovirt:4.0:dev&quot;<br>
VARIANT=&quot;&quot;<br>
VARIANT_ID=<br>
<br>
The variables are close to what is used by Fedora and CentOS.<br>
The variant field is left empty by default, but can be populated with<br>
defined values for variants like Node or i.e. a container variant.<br></blockquote><div><br></div><div><br></div><div>what if multiple ovirt-releaseX are installed?</div><div>for example, upgrading from 3.5 to 3.6 keeping rollback support during the upgrade requires to have ovirt-release35 and ovirt-release36 installed side by side.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
A CPE [1] is also included for convenience.<br>
<br>
Thoughts?<br>
<br>
- fabian<br>
<br>
--<br>
[0] <a href="https://gerrit.ovirt.org/#/c/46067/" rel="noreferrer" target="_blank">https://gerrit.ovirt.org/#/c/46067/</a><br>
[1] <a href="http://cpe.mitre.org/" rel="noreferrer" target="_blank">http://cpe.mitre.org/</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Sandro Bonazzola<br>Better technology. Faster innovation. Powered by community collaboration.<br>See how it works at <a href="http://redhat.com" target="_blank">redhat.com</a><br></div></div></div></div>
</div></div>