From: Zbigniew Jędrzejewski-Szmek Date: Sat, 17 Sep 2022 10:02:53 +0000 (+0200) Subject: man/systemd-gpt-auto-generator: export type flags by name, trim table X-Git-Tag: v252-rc1~120^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6a173ef3b635a2beb2855cb84318e12c5bba9ca;p=thirdparty%2Fsystemd.git man/systemd-gpt-auto-generator: export type flags by name, trim table We listed many of the root-partition type uuids, but not all. I think the chances of somebody using the discoverable partition magic on an Itanium system are fairly low at this point. So let's remove all architectures except the two most popular consumer architectures. People building Longsoon or RISC-V images are likely to have the online version of the Discoverable Partitions Specifications handy anyway, and it makes the man page easier to read. It also reduces the chances that somebody adding new entries to the table has some select&paste mishap. We've already had this happen in the past and it's fairly nasty bug. We don't need to expose the information in two places with manual propagation between them. --- diff --git a/man/systemd-gpt-auto-generator.xml b/man/systemd-gpt-auto-generator.xml index 1c846a02125..efdecb47a9d 100644 --- a/man/systemd-gpt-auto-generator.xml +++ b/man/systemd-gpt-auto-generator.xml @@ -80,91 +80,63 @@ - 44479540-f297-41b2-9af7-d131d5f0458a - Root Partition (x86) - / - On 32-bit x86 systems, the first x86 root partition on the disk the EFI ESP is located on is mounted to the root directory /. - - - 4f68bce3-e8cd-4db1-96e7-fbcaf984b709 + SD_GPT_ROOT_X86_64 4f68bce3-e8cd-4db1-96e7-fbcaf984b709 Root Partition (x86-64) / On 64-bit x86 systems, the first x86-64 root partition on the disk the EFI ESP is located on is mounted to the root directory /. - 69dad710-2ce4-4e3c-b16c-21a1d49abed3 - Root Partition (32-bit ARM) - / - On 32-bit ARM systems, the first ARM root partition on the disk the EFI ESP is located on is mounted to the root directory /. - - - b921b045-1df0-41c3-af44-4c6f280d3fae + SD_GPT_ROOT_ARM64 b921b045-1df0-41c3-af44-4c6f280d3fae Root Partition (64-bit ARM) / On 64-bit ARM systems, the first ARM root partition on the disk the EFI ESP is located on is mounted to the root directory /. - 993d8d3d-f80e-4225-855a-9daf8ed7ea97 - Root Partition (Itanium/IA-64) - / - On Itanium systems, the first Itanium root partition on the disk the EFI ESP is located on is mounted to the root directory /. - - - 77055800-792c-4f94-b39a-98c91b762bb6 - Root Partition (LoongArch 64) + + SD_GPT_ROOT_ALPHA SD_GPT_ROOT_ARC SD_GPT_ROOT_ARM SD_GPT_ROOT_ARM64 SD_GPT_ROOT_IA64 SD_GPT_ROOT_LOONGARCH64 SD_GPT_ROOT_MIPS_LE SD_GPT_ROOT_MIPS64_LE SD_GPT_ROOT_PARISC SD_GPT_ROOT_PPC SD_GPT_ROOT_PPC64 SD_GPT_ROOT_PPC64_LE SD_GPT_ROOT_RISCV32 SD_GPT_ROOT_RISCV64 SD_GPT_ROOT_S390 SD_GPT_ROOT_S390X SD_GPT_ROOT_TILEGX SD_GPT_ROOT_X86 SD_GPT_ROOT_X86_64 SD_GPT_USR_ALPHA SD_GPT_USR_ARC SD_GPT_USR_ARM SD_GPT_USR_IA64 SD_GPT_USR_LOONGARCH64 SD_GPT_USR_MIPS_LE SD_GPT_USR_MIPS64_LE SD_GPT_USR_PARISC SD_GPT_USR_PPC SD_GPT_USR_PPC64 SD_GPT_USR_PPC64_LE SD_GPT_USR_RISCV32 SD_GPT_USR_RISCV64 SD_GPT_USR_S390 SD_GPT_USR_S390X SD_GPT_USR_TILEGX SD_GPT_USR_X86 + + root partitions for other architectures / - On LoongArch 64-bit systems, the first LoongArch 64-bit root partition on the disk the EFI ESP is located on is mounted to the root directory /. + For the full list, see Discoverable Partitions Specification. - 60d5a7fe-8e7d-435c-b714-3dd8162144e1 - Root Partition (RISCV-V 32) - / - On RISC-V 32-bit systems, the first RISCV-V 32-bit root partition on the disk the EFI ESP is located on is mounted to the root directory /. - - - 72ec70a6-cf74-40e6-bd49-4bda08e8f224 - Root Partition (RISCV-V 64) - / - On RISC-V 64-bit systems, the first RISCV-V 64-bit root partition on the disk the EFI ESP is located on is mounted to the root directory /. - - - 933ac7e1-2eb4-4f13-b844-0e14e2aef915 + SD_GPT_HOME 933ac7e1-2eb4-4f13-b844-0e14e2aef915 Home Partition /home/ The first home partition on the disk the root partition is located on is mounted to /home/. - 3b8f8425-20e0-4f3b-907f-1a25a76f98e8 + SD_GPT_SRV 3b8f8425-20e0-4f3b-907f-1a25a76f98e8 Server Data Partition /srv/ The first server data partition on the disk the root partition is located on is mounted to /srv/. - 4d21b016-b534-45c2-a9fb-5c16e091fd2d + SD_GPT_VAR 4d21b016-b534-45c2-a9fb-5c16e091fd2d Variable Data Partition /var/ The first variable data partition on the disk the root partition is located on is mounted to /var/ — under the condition its partition UUID matches the first 128 bit of the HMAC-SHA256 of the GPT type uuid of this partition keyed by the machine ID of the installation stored in machine-id5. - 7ec6f557-3bc5-4aca-b293-16ef5df639d1 + SD_GPT_TMP 7ec6f557-3bc5-4aca-b293-16ef5df639d1 Temporary Data Partition /var/tmp/ The first temporary data partition on the disk the root partition is located on is mounted to /var/tmp/. - 0657fd6d-a4ab-43c4-84e5-0933c84b4f4f + SD_GPT_SWAP 0657fd6d-a4ab-43c4-84e5-0933c84b4f4f Swap n/a All swap partitions located on the disk the root partition is located on are enabled. - c12a7328-f81f-11d2-ba4b-00a0c93ec93b + SD_GPT_ESP c12a7328-f81f-11d2-ba4b-00a0c93ec93b EFI System Partition (ESP) /efi/ or /boot/ The first ESP located on the disk the root partition is located on is mounted to /boot/ or /efi/, see below. - bc13c2ff-59e6-4262-a352-b275fd6f7172 + SD_GPT_XBOOTLDR bc13c2ff-59e6-4262-a352-b275fd6f7172 Extended Boot Loader Partition /boot/ The first Extended Boot Loader Partition is mounted to /boot/, see below. @@ -176,38 +148,33 @@ This generator understands the following attribute flags for partitions: - Partition Attributes - - - + Partition Attribute Flags + + - Name - Value + Flag Applicable to Explanation - SD_GPT_FLAG_READ_ONLY - 0x1000000000000000 + SD_GPT_FLAG_READ_ONLY 0x1000000000000000 /, /home/, /srv/, /var/, /var/tmp/, Extended Boot Loader Partition Partition is mounted read-only - SD_GPT_FLAG_NO_AUTO - 0x8000000000000000 + SD_GPT_FLAG_NO_AUTO 0x8000000000000000 /, /home/, /srv/, /var/, /var/tmp/, Extended Boot Loader Partition Partition is not mounted automatically - SD_GPT_FLAG_NO_BLOCK_IO_PROTOCOL - 0x0000000000000002 + SD_GPT_FLAG_NO_BLOCK_IO_PROTOCOL 0x0000000000000002 EFI System Partition (ESP) Partition is not mounted automatically