search for: grub_part_info_cmd

Displaying 1 result from an estimated 1 matches for "grub_part_info_cmd".

2010 Oct 26
0
[PATCH node] add install.py
...ice") + os.system("service iscsi restart") + except: + pass + else: + grub_dev_label="RootBackup" + + # check that /boot mounted ok and find partition number for GRUB, $4 is to allow 0 as a partition number for grub + grub_part_info_cmd = "findfs LABEL=%s 2>/dev/null" % grub_dev_label + grub_part_info = subprocess.Popen(grub_part_info_cmd, shell=True, stdout=PIPE, stderr=STDOUT) + disk = grub_part_info.stdout.read() + disk = disk.rstrip(disk[-1:]) + length = len(disk) - 1 + partN = disk[length:] + pa...