Displaying 1 result from an estimated 1 matches for "files_cmd".
Did you mean:
file_cmd
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...firstboot.set("/files/etc/defaults/ovirt/OVIRT_INIT", '""')
+ firstboot.set("/files/etc/defaults/OVIRT_UPGRADE", "0")
+ firstboot.save()
+
+# Destroys a particular volume group and its logical volumes.
+
+def wipe_volume_group(vg):
+ files_cmd = "grep %s /proc/mounts|awk '{print $2}'|sort -r" % vg
+ files = subprocess.Popen(files_cmd, shell=True, stdout=PIPE, stderr=STDOUT)
+ files_output = files.stdout.read()
+ for file in files_output.split():
+ umount_cmd = "umount %s" % file
+ os.sys...