[node-patches] Change in ovirt-node[master]: ovirt-init-functions: run rhn_check only for RHEV-H

dougsland at redhat.com dougsland at redhat.com
Thu Aug 7 10:46:22 UTC 2014


Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: ovirt-init-functions: run rhn_check only for RHEV-H
......................................................................

ovirt-init-functions: run rhn_check only for RHEV-H

Currently rhn_check is being executed in ovirt-init-functions
even in oVirt Node image. This patch adds a validation to
run it only on RHEV-H images.

Change-Id: I3cb0480d0f1444fcef5175182c98a5f6030df4a6
Signed-off-by: Douglas Schilling Landgraf <dougsland at redhat.com>
---
M scripts/ovirt-init-functions.sh.in
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/84/31184/1

diff --git a/scripts/ovirt-init-functions.sh.in b/scripts/ovirt-init-functions.sh.in
index 8490ec3..a63a584 100644
--- a/scripts/ovirt-init-functions.sh.in
+++ b/scripts/ovirt-init-functions.sh.in
@@ -1353,8 +1353,10 @@
         swapon -a
         mount -a
 
-        # force update rhn profile on boot for upgrades
-        rhn_check
+        if [ -f /etc/rhev-hypervisor-release ]; then
+            # force update rhn profile on boot for upgrades
+            rhn_check
+        fi
 
         # Synchronize logs
         log "Synchronizing log files"


-- 
To view, visit http://gerrit.ovirt.org/31184
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3cb0480d0f1444fcef5175182c98a5f6030df4a6
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsland at redhat.com>



More information about the node-patches mailing list