From 0ebcd9f776da9b1a1a5317403a3f60bd93d6ba8a Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Tue, 21 Mar 2023 13:27:15 +0100 Subject: 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") --- src/live/parttypes.py | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'src') 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, } -- cgit v1.2.3-18-g5258