[node-patches] Change in ovirt-node[ovirt-3.6]: Clean up fstab entries for NFS when wiping the config
fabiand at redhat.com
fabiand at redhat.com
Mon Sep 14 14:23:23 UTC 2015
Fabian Deutsch has uploaded a new change for review.
Change subject: Clean up fstab entries for NFS when wiping the config
......................................................................
Clean up fstab entries for NFS when wiping the config
Don't leave multiple lines in fstab pointing to different NFS
targets
Change-Id: I35aae22d684783fb52597e62d9d197af852f036b
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M src/ovirt/node/config/defaults.py
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/07/46107/1
diff --git a/src/ovirt/node/config/defaults.py b/src/ovirt/node/config/defaults.py
index 33bf575..7f6542d 100755
--- a/src/ovirt/node/config/defaults.py
+++ b/src/ovirt/node/config/defaults.py
@@ -1121,6 +1121,12 @@
[aug.remove(v) for v in vals.keys() if vals[v] is not None]
aug.save()
+ for entry in aug.match("/files/etc/fstab/*"):
+ if aug.get(entry + "/file") == "/var/run/kdump-nfs":
+ aug.remove(entry)
+ aug.save()
+
+
class LocalKdumpConfig(utils.Transaction.Element):
title = "Setting local kdump config"
--
To view, visit https://gerrit.ovirt.org/46107
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I35aae22d684783fb52597e62d9d197af852f036b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: ovirt-3.6
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at redhat.com>
More information about the node-patches
mailing list