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 <[email protected]> --- 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 <[email protected]> Gerrit-Reviewer: Fabian Deutsch <[email protected]> _______________________________________________ node-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/node-patches
