search for: ovirt_safe_delete_config

Displaying 7 results from an estimated 7 matches for "ovirt_safe_delete_config".

2010 Jan 18
0
[PATCH] Fixed unpersisting directories and persisting directories that contain persisted files.
...else + printf " %s successully unpersisted\n" $f + fi fi fi fi @@ -550,17 +574,26 @@ remove_config() { # WARNING: file is shredded and removed # ovirt_safe_delete_config() { - if grep -q " /config ext3" /proc/mounts; then - for f in "$@"; do - if grep -q " $f ext3" /proc/mounts ; then - umount -n $f - fi - # unregister in /config/files used by rc.sysinit - sed --copy...
2011 Aug 11
1
[PATCH] fix augtool calls
parse input augtool strings to oper,key,value --- scripts/network.py | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/scripts/network.py b/scripts/network.py index f51ee7c..65b551c 100644 --- a/scripts/network.py +++ b/scripts/network.py @@ -165,11 +165,11 @@ class Network: ntpconf = ntpconf.split("\n") for line
2010 Mar 23
1
Resend of one patch, new to follow on...
The first patch in this set was submitted in January but never ACK'd. The following three are follow on patches to fix other issues that have come up.
2011 Jul 20
0
[PATCH] fix ipv4 static/dhcp/disabled networking changes
...igure_dns(self): @@ -194,13 +191,12 @@ class Network: # except: # pass # -# for script in os.listdir("/etc/sysconfig/network-scripts/"): -# if "ifcfg" in script: -# if not "ifcfg-lo" in script: -# ovirt_safe_delete_config(script) + for script in os.listdir("/etc/sysconfig/network-scripts/"): + if self.CONFIGURED_NIC in script: + log("Removing Script: " + script) + ovirt_safe_delete_config("/etc/sysconfig/network-scripts/" + script) +...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...os.system("sed --copy -i \"\|^%s$|d\" /config/files") % filename + else: + log("%s is not a persisted file.\n") % filename + else: + log("File not explicitly persisted: %s\n") % filename + +# ovirt_safe_delete_config +# ovirt_safe_delete_config /etc/config /etc/config2 ... +# +# Use to *permanently* remove persisted configuration file. +# WARNING: file is shredded and removed +# +def ovirt_safe_delete_config(target): + for t in target: + if check_bind_mount(target): + os.system("...
2010 Oct 25
0
[PATCH node] add network.py script
...os.system("vconfig rem %s") % vlan + except: + pass + + for script in os.listdir("/etc/sysconfig/network-scripts/"): + if "ifcfg" in script: + if not "ifcfg-lo" in script: + ovirt_safe_delete_config(script) + + config = self.WORKDIR + "/config-augtool" + + + for line in self.IF_CONFIG: + try: + oper, file, value = line.split() + except: + oper, file = line.split() + augtool(line) +...
2009 May 27
4
[PATCH node] REPOST Joey's and Darryl's ovirt-config-* patches
This is a repost of patches for ovirt-config-* ACK to all. Pushed.