Displaying 1 result from an estimated 1 matches for "e2label_cmd".
2010 Oct 26
0
[PATCH node] add install.py
...rc=0
+ else:
+ candidate_dev_cmd = "findfs LABEL=%s 2>/dev/null" % candidate
+ candidate_dev = subprocess.Popen(grub_part_info_cmd, shell=True, stdout=PIPE, stderr=STDOUT, stdin=PIPE)
+ candidate_dev = candidate_dev.stdout.read()
+ e2label_cmd = "e2label %s RootNew" % candidate_dev
+ rc = os.system(e2label_cmd)
+ if rc != 0:
+ log("root partition not available.")
+ label_debug = os.listdir("ls -al /dev/disk/by-label")
+ log(label_debug)
+ return rc
+...