refs #2414 add a missing partition type
parent
e529768257
commit
3d692f54a5
|
@ -49,14 +49,12 @@ def ogGetIoSize (disk):
|
|||
if not DISK: return None
|
||||
|
||||
IOSIZE = None
|
||||
print (f'nati ejecutando fdisk -l')
|
||||
fdisk_out = subprocess.run (['fdisk', '-l', DISK], capture_output=True, text=True).stdout
|
||||
for l in fdisk_out.splitlines():
|
||||
if 'I/O' not in l: continue
|
||||
items = l.split()
|
||||
if len(items) < 4: continue
|
||||
IOSIZE = items[3]
|
||||
print (f'nati detectado IOSIZE ({IOSIZE})')
|
||||
break
|
||||
|
||||
if IOSIZE is None:
|
||||
|
@ -1254,6 +1252,7 @@ def ogTypeToId (type, pttype='MSDOS'):
|
|||
data = {
|
||||
'GPT_GUID': {
|
||||
## https://en.wikipedia.org/wiki/GUID_Partition_Table?useskin=vector
|
||||
'EMPTY': '0',
|
||||
'WINDOWS': 'EBD0A0A2-B9E5-4433-87C0-68B6B72699C7',
|
||||
'NTFS': 'EBD0A0A2-B9E5-4433-87C0-68B6B72699C7',
|
||||
'FAT32': 'EBD0A0A2-B9E5-4433-87C0-68B6B72699C7',
|
||||
|
|
Loading…
Reference in New Issue