Commit dccc15bf authored by Andrey Filippov's avatar Andrey Filippov

fixed partition name when using LAN (not mounting partition locally)

parent 2a6df399
......@@ -475,10 +475,15 @@ class PC():
print("TODO: Implement raw partition check over SSH")
# print(cam)
ip = cam["ip"]
print("Getting raw partition data from "+part)
if not os.path.isdir(dest):
os.mkdir(dest)
dirname = self.partname(part)
print("Getting raw partition data from "+part+" to "+dest) #/dev/sda2
if (cam==None):
dirname = self.partname(part)
else:
dirname = cam['obj'].partition_name(part)
print ("dirname="+dirname)
# print ("partition_name="+cam['obj'].partition_name(part))
if dirname!="":
dirname = dest+"/"+dirname
if not os.path.isdir(dirname):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment