[node-patches] Change in ovirt-node[master]: [DRAFT] setup: Remove kdump config files on interruption
fabiand at fedoraproject.org
fabiand at fedoraproject.org
Fri Dec 14 14:55:05 UTC 2012
Fabian Deutsch has uploaded a new change for review.
Change subject: [DRAFT] setup: Remove kdump config files on interruption
......................................................................
[DRAFT] setup: Remove kdump config files on interruption
Previously configurations files were kept, even if the configuration
was interrupted by the user.
Now the files are removed on interruption.
rhbz#869513
Change-Id: Idb5cfd1a75d55d1151b72979208a7e07dfc3edb7
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/ovirt-config-setup.py
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/64/10064/1
diff --git a/scripts/ovirt-config-setup.py b/scripts/ovirt-config-setup.py
index 0949367..a018be8 100755
--- a/scripts/ovirt-config-setup.py
+++ b/scripts/ovirt-config-setup.py
@@ -1906,6 +1906,9 @@
system("rm /etc/kdump.conf.old")
except KeyboardInterrupt:
ret = 1
+ files = ["/etc/kdump.conf.old", "/etc/kdump.conf"]
+ if os.path.exists(fn):
+ system("rm -f %s" % fn)
def process_remote_storage_config(self):
set_iscsi_initiator(self.iscsi_initiator_config.value())
--
To view, visit http://gerrit.ovirt.org/10064
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idb5cfd1a75d55d1151b72979208a7e07dfc3edb7
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