Displaying 1 result from an estimated 1 matches for "pvs_cmd".
Did you mean:
pre_cmd
2011 Aug 31
1
[PATCH node] fix install when VG exists on disk
..., stderr=STDOUT)
vg_output = vg.stdout.read()
for vg in vg_output:
- pvs = system("pvscan -o pv_name,vg_uuid --noheadings | grep \"%s\" | egrep -v -q \"%s%s[0-9]+|%s \"") % (vg, dev, part_delim, dev)
- if pvs > 0:
+ pvs_cmd = "pvs -o pv_name,vg_uuid --noheadings | grep \"%s\" | egrep -v -q \"%s%s[0-9]+|%s \"" % (vg, dev, part_delim, dev)
+ pvs = subprocess.Popen(pvs_cmd, shell=True, stdout=PIPE, stderr=STDOUT)
+ pvs_output = pvs.stdout.read()
+ if pvs_outp...