From dbb796b8e96dcac1227233624a4a6b32fa3823bb Mon Sep 17 00:00:00 2001 From: Rouven Czerwinski Date: Thu, 21 Nov 2024 11:47:24 +0100 Subject: [PATCH 1/2] README: document GPT partition flags Document how partition configuration is translated to GPT Flags for GPT partition tables. Signed-off-by: Rouven Czerwinski --- README.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.rst b/README.rst index 4e64732..2cd074f 100644 --- a/README.rst +++ b/README.rst @@ -427,6 +427,24 @@ Options: bigger. This is necessary if the image will be processed by such tools as libvirt, libguestfs or parted. +GPT partition flags +~~~~~~~~~~~~~~~~~~~ + +A GPT partition table will translate the following partition configurations to +the respective GPT flags and set it in the GPT partiton table: + +====================== ============================== +genimage configuration GPT FLAG +====================== ============================== +read-only GPT_PE_FLAG_READ_ONLY (Bit 60) +bootable GPT_PE_FLAG_BOOTABLE (Bit 2) +hidden GPT_PE_FLAG_HIDDEN (Bit 62) +no-automount GPT_PE_FLAG_NO_AUTO (Bit 63) +====================== ============================== + +Other GPT Flags are currently not supported. + + iso *** Generates an ISO image. From b025b03ee919f8641c00f31f690118b5be294f25 Mon Sep 17 00:00:00 2001 From: Rouven Czerwinski Date: Thu, 21 Nov 2024 12:12:20 +0100 Subject: [PATCH 2/2] README: document additional partition flags Document all partition flags. Signed-off-by: Rouven Czerwinski --- README.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.rst b/README.rst index 2cd074f..d3f1e97 100644 --- a/README.rst +++ b/README.rst @@ -129,6 +129,9 @@ Partition options: For hd images this can be used for the last partition. If set the partition will fill the remaining space of the image. :bootable: Boolean specifying whether to set the bootable flag. +:hidden: Boolean specifying whether to set the hidden flag (only with GPT). +:no-automount: Boolean specifying whether to set the no-automount flag (only with GPT). +:read-only: Boolean specifying whether to set the read-only flag (only with GPT). :in-partition-table: Boolean specifying whether to include this partition in the partition table. Defaults to true. :forced-primary: Force this partition to be a primary partition in the