Commit 5a76602f authored by Andrey Filippov's avatar Andrey Filippov

just comments in format_disk.py

parent 8678bb67
...@@ -181,6 +181,11 @@ def get_disk_size(dev_path): ...@@ -181,6 +181,11 @@ def get_disk_size(dev_path):
disk_size = int(sz[:-2]) disk_size = int(sz[:-2])
except: except:
print ("FIXME: (with fresh disk only) add ''mklabel', 'msdos'' in case of 'Error: /dev/sda: unrecognised disk label'") print ("FIXME: (with fresh disk only) add ''mklabel', 'msdos'' in case of 'Error: /dev/sda: unrecognised disk label'")
'''
needs a separate command (before print):
parted -s /dev/sda mklabel msdos
'''
disk_size = 0 disk_size = 0
return disk_size return disk_size
......
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