Commit 4f3ca0c
committed
refactor(packages): mios.toml is the only runtime SSOT; PACKAGES.md is documentation
Removes the legacy PACKAGES.md fenced-block fallback from the runtime path.
mios.toml [packages.<section>].pkgs is now the single source consulted by
automation/lib/packages.sh, resolved through the documented overlay chain
(MIOS_TOML override -> ~/.config -> /etc/mios -> /ctx/mios-bootstrap ->
/usr/share/mios -> /ctx/usr/share/mios).
Touched files:
- automation/lib/packages.sh: drop Tier-2 sed/awk PACKAGES.md scrape;
get_packages / get_packages_strict / install_packages_optional now take
only a section name.
- automation/build.sh: export MIOS_TOML instead of PACKAGES_MD; FATAL when
the TOML is missing.
- automation/install-bootstrap.sh: source packages.sh and aggregate every
[packages.*] section discovered via awk so the ignition path matches
what the OCI build chain installs.
- Containerfile + Containerfile.minimal: drop the COPY of PACKAGES.md and
the export PACKAGES_MD; pass MIOS_TOML pointing at the already-shipped
/tmp/build/usr/share/mios/mios.toml.
- build-mios.ps1: required-file check verifies usr/share/mios/mios.toml,
not usr/share/mios/PACKAGES.md.
- usr/share/mios/env.defaults: replace MIOS_PACKAGES_MD with MIOS_TOML.
- usr/libexec/mios-verify: probe the new doc-tree PACKAGES.md location +
keep mios.toml as a hard-required vendor file.
- 11 automation/*.sh comment-only fixups: each "from PACKAGES.md
packages-X" header now reads "from mios.toml [packages.X]".
- usr/share/mios/PACKAGES.md -> usr/share/doc/mios/reference/PACKAGES.md
(legacy reference moved to the docs tree, header rewritten to state the
fallback is fully removed in v0.2.4).
- llms.txt + usr/share/doc/mios/reference/credits.md: citation pointers
updated to the new docs-tree path and to mios.toml as the SSOT.
Why: completes the user's "deprecate -> consolidate -> remove" arc for
PACKAGES.md. The TOML manifest is what the configurator HTML edits and
what every operator override layer expects; keeping the fenced-block
fallback in code drifted away from that. The 44 [packages.<section>]
tables in mios.toml were already authoritative for every section the
build chain touches.
Verified: bash -n on all 14 modified scripts; get_packages_from_toml
smoke-tested for base/ai/glibc-hwcaps-v3 + nonexistent section against
the live usr/share/mios/mios.toml.1 parent 5e731d3 commit 4f3ca0c
22 files changed
Lines changed: 168 additions & 136 deletions
File tree
- automation
- lib
- usr
- libexec
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
53 | | - | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
72 | | - | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| |||
88 | 91 | | |
89 | 92 | | |
90 | 93 | | |
91 | | - | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
102 | | - | |
| 105 | + | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | | - | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments