|
|
|
@ -1250,20 +1250,22 @@ class PartitionDistributive(Distributive):
|
|
|
|
|
pipe = Popen([fdiskProg, deviceName],
|
|
|
|
|
stdin=PIPE, stdout=PIPE, stderr=PIPE)
|
|
|
|
|
if devicePartitionCount > 1:
|
|
|
|
|
pipe.stdin.write("t\n%s\n%s\nw\n" % (partitionNumber,
|
|
|
|
|
systemid))
|
|
|
|
|
tmp = "t\n%s\n%s\nw\n" % (partitionNumber, systemid)
|
|
|
|
|
pipe.stdin.write(tmp.encode("UTF-8"))
|
|
|
|
|
else:
|
|
|
|
|
pipe.stdin.write("t\n%s\nw\n" % systemid)
|
|
|
|
|
tmp = "t\n%s\nw\n" % systemid
|
|
|
|
|
pipe.stdin.write(tmp.encode("UTF-8"))
|
|
|
|
|
pipe.stdin.close()
|
|
|
|
|
pipe.wait()
|
|
|
|
|
elif parttable == "gpt":
|
|
|
|
|
pipe = Popen([gdiskProg, deviceName],
|
|
|
|
|
stdin=PIPE, stdout=PIPE, stderr=PIPE)
|
|
|
|
|
if devicePartitionCount > 1:
|
|
|
|
|
pipe.stdin.write("t\n%s\n%s\nw\ny\n" % (partitionNumber,
|
|
|
|
|
systemid))
|
|
|
|
|
tmp = "t\n%s\n%s\nw\ny\n" % (partitionNumber, systemid)
|
|
|
|
|
pipe.stdin.write(tmp.encode("UTF-8"))
|
|
|
|
|
else:
|
|
|
|
|
pipe.stdin.write("t\n%s\nw\ny\n" % systemid)
|
|
|
|
|
tmp = "t\n%s\nw\ny\n" % systemid
|
|
|
|
|
pipe.stdin.write(tmp.encode("UTF-8"))
|
|
|
|
|
pipe.stdin.close()
|
|
|
|
|
pipe.wait()
|
|
|
|
|
for waittime in (0.1, 0.2, 0.5, 1, 2, 4):
|
|
|
|
|