diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2023-03-21 13:27:15 +0100 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2023-03-23 09:49:46 +0100 |
commit | 0ebcd9f776da9b1a1a5317403a3f60bd93d6ba8a (patch) | |
tree | 6a90e4d78014a890921ac0055e387876610990ca /src/live | |
parent | 97e753cbfdfbaaaa027ed1a161e0ad0bf4960ba5 (diff) |
live: add linux swap parttype
Adds linux swap partition type, mapped to the 'LINUX-SWAP' string in web
interfaces like ogCP or webconsole.
Fixes: 29c53e54e945 ("live: add parttypes.py")
Diffstat (limited to 'src/live')
-rw-r--r-- | src/live/parttypes.py | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/live/parttypes.py b/src/live/parttypes.py index c840f39..21729a3 100644 --- a/src/live/parttypes.py +++ b/src/live/parttypes.py @@ -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, } |