[node-patches] Change in ovirt-node[master]: disable kdump when all options are unchecked

jboggs at redhat.com jboggs at redhat.com
Thu Nov 1 19:10:18 UTC 2012


Joey Boggs has uploaded a new change for review.

Change subject: disable kdump when all options are unchecked
......................................................................

disable kdump when all options are unchecked

rhbz#872062

Change-Id: Ibae716e98f6f1460221e2e46ff4432007a4cb669
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
M scripts/ovirt-config-setup.py
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/82/8982/1

diff --git a/scripts/ovirt-config-setup.py b/scripts/ovirt-config-setup.py
index c903c63..2f0ded4 100755
--- a/scripts/ovirt-config-setup.py
+++ b/scripts/ovirt-config-setup.py
@@ -1833,6 +1833,9 @@
         elif self.kdump_restore_type.value() == 1:
             restore_kdump_config()
         else:
+            remove_config("/etc/kdump.conf")
+            system("service kdump stop")
+            open('/etc/kdump.conf', 'w').close()
             return
         if not system("service kdump restart"):
             self._create_warn_screen()


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibae716e98f6f1460221e2e46ff4432007a4cb669
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Joey Boggs <jboggs at redhat.com>



More information about the node-patches mailing list