Bug 2350301 - Upstream or namespace PLATFORM_ID
Summary: Upstream or namespace PLATFORM_ID
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: fedora-release
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zbigniew Jędrzejewski-Szmek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-06 11:27 UTC by Lennart Poettering
Modified: 2025-03-10 13:59 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lennart Poettering 2025-03-06 11:27:12 UTC
Heya,

I noticed fedora populates os-release with a PLATFORM_ID= field. That field os not part of the os-release spec upstream. Now, extending os-release is totally fine for downstreams, but the spec says that these extensions should be namespaced, i.e. FEDORA_PLATFORM_ID= or so would be the right name for this field.

I mean, if there's a good usecase for the field we can certainly look into upstreaming this, but there appears zero documentation about it (couldn#t find any at least), i.e. what this is supposed to contain, and what it is used for, and why the existing fields are not good enough for the usecase.

Anyway, would be good to either rename it, or to upstream it.

Comment 1 Stephen Gallagher 2025-03-06 13:43:59 UTC
The PLATFORM_ID field is pretty much vestigial at this point in Fedora. It was introduced during the Modularity days and it provided the identifier for the virtual "platform module" that other modules could depend on. I believe it's still in use in RHEL, but it's probably safe at this point for us to remove it from Fedora.

Comment 2 Lennart Poettering 2025-03-06 14:12:57 UTC
oh, ok, removing sounds great too!

Comment 3 Stephen Gallagher 2025-03-06 15:17:31 UTC
I did a little further digging here and we're in kind of an awkward position.

Technically, Fedora has retired Modularity and its module build service (MBS), meaning we don't ship any modules and cannot build or update any that we used to ship. This happened in Fedora 39, which SHOULD mean that anything that used to be a module is long since migrated.

HOWEVER, it turns out that DNF (both 4 and 5) retain support for Modularity (largely for RHEL reasons) and it's possible that there are third-party modules out there that rely on PLATFORM_ID which is, as you note, a non-standard extension to os-release.

Since PLATFORM_ID was effectively a published API for Modularity AND we have no reference implementation for module-building, we don't have an easy way to rename the option. I also don't see any value in trying to get PLATFORM_ID standardized upstream at this point, given that it's a dead technology.

Would it be sufficient for us to just stick a comment in os-release indicating that the option is a non-standard extension that is preserved for the moment for historical reasons, but it should not be relied upon for any purpose?

Comment 4 Peter Robinson 2025-03-06 15:29:07 UTC
Could we also do a change for F-43 to remove it so it's an advertised removal, and maybe suggest a replacement identifier if people need something, and it just goes away?

Comment 5 Stephen Gallagher 2025-03-06 15:56:30 UTC
(In reply to Peter Robinson from comment #4)
> Could we also do a change for F-43 to remove it so it's an advertised
> removal, and maybe suggest a replacement identifier if people need
> something, and it just goes away?

Changing or removing it has knock-on effects with DNF that I don't have the cycles to address in the immediate future. If someone wants to drive that effort, I absolutely support it. I just can't commit to it.

Comment 6 Zbigniew Jędrzejewski-Szmek 2025-03-06 21:03:30 UTC
I think it'd make sense to file a Change proposal for this.
https://sourcegraph.com/search?q=context:global+%27%22PLATFORM_ID%22%27&patternType=regexp&case=yes&sm=0
suggests that it's used for el8 and el9 by bootc, possibly by container-inspector.
(It's hard to say if it's used, or just shown in samples…)
But that's probably enough usage to not just drop it immediately.

Comment 7 Zbigniew Jędrzejewski-Szmek 2025-03-10 13:59:00 UTC
https://fedoraproject.org/wiki/Changes/Drop_PLATFORM_ID


Note You need to log in before you can comment on or make changes to this bug.