[node-patches] Change in ovirt-node[master]: [DRAFT] init: Reload systemd if available

fabiand at fedoraproject.org fabiand at fedoraproject.org
Wed Feb 13 10:45:23 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: [DRAFT] init: Reload systemd if available
......................................................................

[DRAFT] init: Reload systemd if available

Use systemctl instead of remounting manually.

Change-Id: I16ed5745709e94e151c5bf2101214a7fca0ef9eb
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/ovirt-init-functions.sh
1 file changed, 8 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/06/12006/1

diff --git a/scripts/ovirt-init-functions.sh b/scripts/ovirt-init-functions.sh
index 24139c6..814f5d9 100644
--- a/scripts/ovirt-init-functions.sh
+++ b/scripts/ovirt-init-functions.sh
@@ -168,8 +168,14 @@
     [ -f "$VAR_SUBSYS_NODECONFIG" ] && exit 0
     {
         # FIXME Hack around rhbz#806349 and which might be because of rhbz#807203
-        mount -a
-        swapon -a
+        if [[ -e "/bin/systemctl" ]];
+        then
+            systemctl daemon-reload
+        else
+            mount -a
+            swapon -a
+        fi
+
         log "Starting ovirt-early"
         _start_ovirt_early
         RETVAL=$?


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I16ed5745709e94e151c5bf2101214a7fca0ef9eb
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>



More information about the node-patches mailing list