diff options
author | Alper Nebi Yasak <alpernebiyasak@gmail.com> | 2019-10-10 21:03:22 +0300 |
---|---|---|
committer | Brian C. Lane <bcl@redhat.com> | 2019-12-20 11:23:47 -0800 |
commit | 08256913c307e0313ee014e0f292fa335cc18f1d (patch) | |
tree | c99a390167ed08de211b895c1b6b4c192443d9e9 /include | |
parent | ca845aeeddb17343c9289816833ca352f7c0d87b (diff) | |
download | parted-08256913c307e0313ee014e0f292fa335cc18f1d.tar.gz |
libparted: Add ChromeOS Kernel partition flag
This adds a GPT-only partition type flag, chromeos_kernel, for use on
Chrome OS machines, with GUID FE3A2A5D-4F32-41A7-B725-ACCC3285A309.
The firmware/bootloader in these machines relies on special images being
written to partitions of this type. Among multiple such partitions, it
decides which one it will boot from based on the GUID-specific partition
attributes. This patch is not intended to and does not manipulate these
bits.
Google refers to these partitions as "ChromeOS kernel" partitions. They
also define partitions for rootfs, firmware, and a reserved one; but
these are not necessary for the boot flow and are not included here.
Relevant ChromiumOS documentation:
https://www.chromium.org/chromium-os/chromiumos-design-docs/disk-format
Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/parted/disk.in.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/parted/disk.in.h b/include/parted/disk.in.h index a3b380d..b257c27 100644 --- a/include/parted/disk.in.h +++ b/include/parted/disk.in.h @@ -75,10 +75,11 @@ enum _PedPartitionFlag { PED_PARTITION_LEGACY_BOOT=15, PED_PARTITION_MSFT_DATA=16, PED_PARTITION_IRST=17, - PED_PARTITION_ESP=18 + PED_PARTITION_ESP=18, + PED_PARTITION_CHROMEOS_KERNEL=19 }; #define PED_PARTITION_FIRST_FLAG PED_PARTITION_BOOT -#define PED_PARTITION_LAST_FLAG PED_PARTITION_ESP +#define PED_PARTITION_LAST_FLAG PED_PARTITION_CHROMEOS_KERNEL enum _PedDiskTypeFeature { PED_DISK_TYPE_EXTENDED=1, /**< supports extended partitions */ |