Displaying 1 result from an estimated 1 matches for "root_label_lookup".
Did you mean:
root2_label_lookup
2010 Oct 27
0
[PATCH node] add uninstall module
...rc = os.system("findfs LABEL=RootUpdate 2>&1 >/dev/null")
+ if rc == 0:
+ root2 = "RootUpdate"
+ rc = os.system("findfs LABEL=RootNew 2>&1 >/dev/null")
+ if rc == 0:
+ root2 = "RootNew"
+
+ root_label_lookup_cmd = "findfs LABEL=Root"
+ root_label_lookup = subprocess.Popen(root_label_lookup_cmd, shell=True, stdout=PIPE, stderr=STDOUT)
+ root_device = root_label_lookup.stdout.read()
+ if root_device is None:
+ log("Can't find Root device")
+...