Skip to content

Commit 11c456a

Browse files
committed
gpt: add more architecture aliases
Same as the other aliases. Allows chaining commands like: $ systemd-id128 show -P root-$(dpkg-architecture --query DEB_HOST_ARCH) 4f68bce3e8cd4db196e7fbcaf984b709 (cherry picked from commit f0b151c) (cherry picked from commit b60d5bc) (cherry picked from commit b4e43b5)
1 parent 59aad95 commit 11c456a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/shared/gpt.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,21 +143,30 @@ const GptPartitionType gpt_partition_type_table[] = {
143143
_GPT_ARCH_SEXTET(ARM64, "aarch64"), /* Alias: must be listed after arm64 */
144144
_GPT_ARCH_SEXTET(IA64, "ia64"),
145145
_GPT_ARCH_SEXTET(LOONGARCH64, "loongarch64"),
146+
_GPT_ARCH_SEXTET(LOONGARCH64, "loong64"), /* Alias: must be listed after loongarch64 */
146147
_GPT_ARCH_SEXTET(MIPS, "mips"),
147148
_GPT_ARCH_SEXTET(MIPS64, "mips64"),
148149
_GPT_ARCH_SEXTET(MIPS_LE, "mips-le"),
150+
_GPT_ARCH_SEXTET(MIPS_LE, "mipsel"), /* Alias: must be listed after mips-le */
149151
_GPT_ARCH_SEXTET(MIPS64_LE, "mips64-le"),
152+
_GPT_ARCH_SEXTET(MIPS64_LE, "mips64el"), /* Alias: must be listed after mips64-le */
150153
_GPT_ARCH_SEXTET(PARISC, "parisc"),
154+
_GPT_ARCH_SEXTET(PARISC, "hppa"), /* Alias: must be listed after parisc */
151155
_GPT_ARCH_SEXTET(PPC, "ppc"),
152156
_GPT_ARCH_SEXTET(PPC64, "ppc64"),
153157
_GPT_ARCH_SEXTET(PPC64_LE, "ppc64-le"),
154158
_GPT_ARCH_SEXTET(PPC64_LE, "ppc64le"), /* Alias: must be listed after ppc64-le */
159+
_GPT_ARCH_SEXTET(PPC64_LE, "ppc64el"), /* Alias: must be listed after ppc64-le */
155160
_GPT_ARCH_SEXTET(RISCV32, "riscv32"),
156161
_GPT_ARCH_SEXTET(RISCV64, "riscv64"),
157162
_GPT_ARCH_SEXTET(S390, "s390"),
158163
_GPT_ARCH_SEXTET(S390X, "s390x"),
159164
_GPT_ARCH_SEXTET(TILEGX, "tilegx"),
160165
_GPT_ARCH_SEXTET(X86, "x86"),
166+
_GPT_ARCH_SEXTET(X86, "i386"), /* Alias: must be listed after x86 */
167+
_GPT_ARCH_SEXTET(X86, "i486"), /* Alias: must be listed after x86 */
168+
_GPT_ARCH_SEXTET(X86, "i586"), /* Alias: must be listed after x86 */
169+
_GPT_ARCH_SEXTET(X86, "i686"), /* Alias: must be listed after x86 */
161170
_GPT_ARCH_SEXTET(X86_64, "x86-64"),
162171
_GPT_ARCH_SEXTET(X86_64, "x86_64"), /* Alias: must be listed after x86-64 */
163172
_GPT_ARCH_SEXTET(X86_64, "amd64"), /* Alias: must be listed after x86-64 */

0 commit comments

Comments
 (0)