[node-patches] Change in ovirt-node[ovirt-3.5]: recipe: Also update the CPE in os-release

fabiand at redhat.com fabiand at redhat.com
Fri Oct 9 16:50:54 UTC 2015


Fabian Deutsch has uploaded a new change for review.

Change subject: recipe: Also update the CPE in os-release
......................................................................

recipe: Also update the CPE in os-release

The CPE string is now also in os-release, for consistency we need to update it there as well.

Change-Id: I5341f03bf1a1c2d92c00e7b90d5ff9bd4a4a7014
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1251864
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M recipe/rhevh7-post.ks
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/62/47162/1

diff --git a/recipe/rhevh7-post.ks b/recipe/rhevh7-post.ks
index 8a4ff32..bc291dd 100644
--- a/recipe/rhevh7-post.ks
+++ b/recipe/rhevh7-post.ks
@@ -100,6 +100,7 @@
 cat > /etc/system-release-cpe <<EOF_CPE
 cpe:/o:redhat:enterprise_linux:${MAJORVER}:update${MINORVER}:hypervisor${TYPE}
 EOF_CPE
+sed -i "/^CPE_NAME=/ s#.*#CPE_NAME=\"$(cat /etc/system-release-cpe)\"#" /etc/os-release
 
 echo "Configuring IPTables"
 # here, we need to punch the appropriate holes in the firewall


-- 
To view, visit https://gerrit.ovirt.org/47162
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5341f03bf1a1c2d92c00e7b90d5ff9bd4a4a7014
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: ovirt-3.5
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>



More information about the node-patches mailing list