]> git.ipfire.org Git - thirdparty/systemd.git/commit
docs: generate table from header using a script
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 18 Nov 2021 14:09:30 +0000 (15:09 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 19 Nov 2021 17:49:46 +0000 (18:49 +0100)
commit00db9a114eed92a9f0badaa72e1b86ca276f5ee3
treeef32e0a927eb0a172192f836ef41cdec92f28a91
parent16bcaebcfaa17830d84137e7a41285de624d515e
docs: generate table from header using a script

This adds a helper script:
$ python3 tools/list-discoverable-partitions.py <src/shared/gpt.h
<!-- generated with tools/list-discoverable-partitions.py -->
| Partition Type UUID | Name | Allowed File Systems | Explanation |
|---------------------|------|----------------------|-------------|
| _Root Partition (Alpha)_ | `6523f8ae-3eb1-4e2a-a05a-18b695ae656f` | [Root Partition] | [Root Partition more] |
| _Root Partition (ARC)_ | `d27f46ed-2919-4cb8-bd25-9531f3c16534` | ditto | ditto |
...

The output can be pasted into the markdown file. I think this works better than
trying to match the two lists by hand.
docs/DISCOVERABLE_PARTITIONS.md
src/shared/gpt.h
tools/list-discoverable-partitions.py [new file with mode: 0644]