Skip to content

Commit

Permalink
Merge pull request #275 from Emantor/topic/gpt-readme
Browse files Browse the repository at this point in the history
README: document GPT partition flags
  • Loading branch information
michaelolbrich authored Nov 22, 2024
2 parents 485cfe5 + b025b03 commit e29218c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -427,6 +430,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.
Expand Down

0 comments on commit e29218c

Please sign in to comment.