Skip to content

The Linux suffix chain follows os-release's lineage: what deploys to Debian deploys to Ubuntu, what deploys to Fedora deploys to RHEL #860

Closed as not planned

Description

@David-Noble-at-work

base for Ubuntu so what deploys to Debian should deploy to Ubuntu. Similarly, Fedora is the base for RHEL so
what deploys to Fedora should deploy to RHEL."

Today

cmd/writ/writ/segment/detect.go names a Linux host's distribution by /etc/os-release's ID, capitalized
by a small table (ubuntu → Ubuntu, rhel → RHEL, …), and the suffix chain is Unix → Linux → that
one name. ID_LIKE — where os-release states the lineage, closest ancestor first — is never read. Measured
2026-09-08 by the layer-journey scenario (#855) on ubuntu-latest: a common.Debian directory does not
deploy on Ubuntu.

The rule

The chain is most-general-first and follows the lineage:

Unix → Linux → <ID_LIKE reversed> → <ID>
Host ID ID_LIKE Chain after Linux
Debian debian — Debian
Ubuntu ubuntu debian Debian → Ubuntu
Fedora fedora — Fedora
RHEL rhel fedora Fedora → RHEL
CentOS Stream centos rhel fedora Fedora → RHEL → CentOS
Rocky rocky rhel centos fedora Fedora → CentOS → RHEL → Rocky

Every directory in the chain contributes; for a file at one target the more specific wins, as Darwin wins
over Unix today. Manifests union across the chain (#814). The capitalization table extends to the names
ID_LIKE can carry, and an unknown id is capitalized as today.

Acceptance

Related

#369 (the suffix grammar: order, dimensions, ties — this adds members to the chain, not dimensions), #849
(the design record), #814 (manifests union across the chain), #855 (where it was measured).

Activity

  1. David-Noble-at-work commented on Sep 28, 2026

    @David-Noble-at-work
    ContributorAuthor

    Merged into #944 (2026-09-28). Ruled: "Yes, merge them." The lineage chain is the one selector API's matching rule, so #944 carries this issue's rule, its table (extended), and its acceptance, including the scenario step 2.3b, which skips by this issue's number until #944 lands and then takes #944's. The rulings of 2026-09-28 (precedence by chain depth; a selector names one link, .Debian permanent) are recorded there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions