[node-patches] Change in ovirt-node[master]: init: Add initial support for node.log_level=debug
fabiand at fedoraproject.org
fabiand at fedoraproject.org
Mon Jul 15 11:50:55 UTC 2013
Fabian Deutsch has uploaded a new change for review.
Change subject: init: Add initial support for node.log_level=debug
......................................................................
init: Add initial support for node.log_level=debug
This is used to enable the debug mode of the auto-installer.
Change-Id: Ifdae5cc10479509519dc1362e3e00c8f4f7fe300
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/ovirt-init-functions.sh.in
1 file changed, 7 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/57/16857/1
diff --git a/scripts/ovirt-init-functions.sh.in b/scripts/ovirt-init-functions.sh.in
index e6cf059..3b65b8e 100644
--- a/scripts/ovirt-init-functions.sh.in
+++ b/scripts/ovirt-init-functions.sh.in
@@ -66,6 +66,11 @@
fi
}
+debugmode() {
+ hasarg "node.log_level=debug"
+}
+
+
#
# ovirt-early
#
@@ -1073,7 +1078,8 @@
auto_install=$?
if [ "$auto_install" = "0" -o "$stateless" = "0" ]; then
breakpoint "pre-auto-install"
- /usr/libexec/ovirt-auto-install
+ debugmode && AIARGS="--debug"
+ /usr/libexec/ovirt-auto-install $AIARGS
rc=$?
breakpoint "post-auto-install"
# Handle Log file
--
To view, visit http://gerrit.ovirt.org/16857
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifdae5cc10479509519dc1362e3e00c8f4f7fe300
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