Skip to content

Read the OS family from the Capone image line - #206

Merged
mastacontrola merged 1 commit into
masterfrom
feat/capone-os-family
Nov 10, 2026
Merged

mastacontrola merged 1 commit into
masterfrom
feat/capone-os-family

Conversation

@mastacontrola

Copy link
Copy Markdown
Member

Capone now sends each image's OS family as an eighth field on the image line (FOGProject/fog-plugins#43). This change makes bin/fog.capone read it.

  • Both parse sites (the listing loop and the selection loop) read eight fields and call determineOS "$osid" "$osfamily".
  • export osfamily="" becomes export osfamily, so the family of the chosen Capone image reaches fog.checkin.
  • A seven-field line from an older plugin still parses. osfamily is empty, and FOS falls back to its own table, as before.
  • ADR-0022 and the CLAUDE.md bullet now state the condition: a new osid resolves through Capone only with fog-plugins v1.6.29 or later.

Tests: tests/checks/os-class.sh extracts both awk/read pairs from fog.capone itself and runs each on an eight-field and a seven-field line. 637 passed, 0 failed. Golden check byte-identical. All tests/checks/*.sh pass. Mutation runs on the second pair turn the test red.

Follows fos#205 (ADR-0022).

🤖 Generated with Claude Code

)

fog.capone now reads an eighth field, osfamily, from each Capone image
line and passes it to determineOS, so a Capone image with an osid FOS
does not know resolves from its family. A seven-field line from an old
plugin leaves osfamily empty, as before. os-class.sh Case three runs the
awk and read text taken from fog.capone itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mastacontrola
mastacontrola merged commit 6902317 into master Nov 10, 2026
1 check passed
@mastacontrola
mastacontrola deleted the feat/capone-os-family branch November 10, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant