live: add linux swap parttype

Adds linux swap partition type, mapped to the 'LINUX-SWAP' string in web
interfaces like ogCP or webconsole.

Fixes: 29c53e54e9 ("live: add parttypes.py")
more_events
Jose M. Guisado 2023-03-21 13:27:15 +01:00
parent 97e753cbfd
commit 0ebcd9f776
1 changed files with 12 additions and 10 deletions

View File

@ -9,19 +9,21 @@
import fdisk
GPT_PARTTYPES = {
'LINUX': '0FC63DAF-8483-4772-8E79-3D69D8477DE4',
'NTFS': 'EBD0A0A2-B9E5-4433-87C0-68B6B72699C7',
'EFI': 'C12A7328-F81F-11D2-BA4B-00A0C93EC93B',
'HFS': '48465300-0000-11AA-AA11-00306543ECAC',
'LINUX-SWAP': '0657FD6D-A4AB-43C4-84E5-0933C84B4F4F',
'LINUX': '0FC63DAF-8483-4772-8E79-3D69D8477DE4',
'NTFS': 'EBD0A0A2-B9E5-4433-87C0-68B6B72699C7',
'EFI': 'C12A7328-F81F-11D2-BA4B-00A0C93EC93B',
'HFS': '48465300-0000-11AA-AA11-00306543ECAC',
}
DOS_PARTTYPES = {
'EXTENDED': 0x0f,
'EMPTY': 0x00,
'LINUX': 0x83,
'CACHE': 0x83,
'NTFS': 0x07,
'HFS': 0xaf,
'LINUX-SWAP': 0x82,
'EXTENDED': 0x0f,
'EMPTY': 0x00,
'LINUX': 0x83,
'CACHE': 0x83,
'NTFS': 0x07,
'HFS': 0xaf,
}