debian-forge/tools
Nikita Dubrovskii fc185dae8c support user-defined partition numbers for GPT disks
Partitions by default are indexed starting at 1, but in
some cases, such as CoreOS for IBM Z, it may be usefull
to set the 'partnum' for GPT disks explicitly, without
creating dummy partitions.

Now user can define an image:

```
    mpp-define-images:
      - id: image
        size: 10737418240
        table:
          uuid: 00000000-0000-4000-a000-000000000001
          label: gpt
          partitions:
            - name: boot
              type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
	      partnum: 3
              size: 786432
            - name: root
              type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
	      partnum: 4
              size: 4194304
```

So target disk would look like:

```
    Disklabel type: gpt
    Disk identifier: 00000000-0000-4000-A000-000000000001
    Device        Start     End Sectors  Size Type
    /dev/loop0p3   2048  788479  786432  384M Linux filesystem
    /dev/loop0p4 788480 4982783 4194304    2G Linux filesystem
```

This patch updates the osbuild-mpp tool and the sgdisk and sfdisk
stages to support this.

Co-authored-by: Dusty Mabe <dusty@dustymabe.com>
2024-02-06 17:44:31 +01:00
..
check-runners tools: add "tools" dir to LINTABLES and fix issues 2023-11-13 10:10:12 +01:00
check-snapshots test/run/assemblers: convert to a v2 manifest 2023-11-14 10:45:44 -08:00
gen-stage-test-diff test,tools: use sys.executable instead of hardcoding python3 2023-11-14 20:34:50 +01:00
inline-source.py tools: add inline-source.py 2021-05-12 14:26:16 +02:00
lorax-template-pkgs.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
osbuild mpp: combine depsolve and import into mpp.py 2021-06-30 20:26:07 +01:00
osbuild-depsolve-dnf depsolve-dnf: helpful exception for repo 2023-10-26 15:53:47 +02:00
osbuild-depsolve-dnf5 osbuild-depsolve-dnf5: Add libdnf5 based depsolving for Fedora 40 2024-01-24 09:55:49 -08:00
osbuild-dev osbuild-dev: use sys.exit 2023-07-20 15:29:35 +02:00
osbuild-mpp support user-defined partition numbers for GPT disks 2024-02-06 17:44:31 +01:00
set-env-variables.sh tools: add set-env-variables.sh 2022-04-13 14:57:27 +02:00
tree-diff tools/tree-diff: make its output stable 2023-08-08 12:41:17 +02:00