Skip to content

Conversation

@al3mart
Copy link
Member

@al3mart al3mart commented Nov 12, 2025

We have been throwing not supported errors on install for linux distros that we might in fact do support, only because the distro has a name X but is based on one of our supported OSs.
Meaning that we could have been using our already supported installation path for the distro the system running pop is based on.

After these changes if the linux OS is not one of: Arch, Debian, Redhat or Ubuntu. We will look for one of the following files: /etc/os-release or /usr/lib/os-release and parse it.

The file includes information about the system. It will include between other fields:

And it is ID_LIKE that we will be using to implement the fix. If it contains information, it will give us OS identifiers that we could use to match against the initial list of OSs and run the proper installation.

A space-separated list of operating system identifiers in the same syntax as the ID= setting. It should list identifiers of operating systems that are closely related to the local operating system in regards to packaging and programming interfaces, for example listing one or more OS identifiers the local OS is a derivative from. An OS should generally only list other OS identifiers it itself is a derivative of, and not any OSes that are derived from it, though symmetric relationships are possible. Build scripts and similar should check this variable if they need to identify the local operating system and the value of ID= is not recognized. Operating systems should be listed in order of how closely the local operating system relates to the listed ones, starting with the closest. This field is optional.

So in a scenario with a system like:

NAME="TUXEDO OS"
VERSION="24.04.3 LTS"
ID=tuxedo
ID_LIKE="ubuntu debian"
PRETTY_NAME="TUXEDO OS"

we would have normally returned an error prompting the OS is not compatible. With this fix in place this will install all dependencies just fine.

source: https://www.freedesktop.org/software/systemd/man/latest/os-release.html

@al3mart al3mart requested review from AlexD10S and moliholy November 12, 2025 00:10
@al3mart al3mart changed the title fix(install): Support linux flavours based on supported distros fix(install): Support more linux flavours based on already supported distros Nov 12, 2025
@al3mart al3mart force-pushed the al3mart/support-more-os branch from 439fb1e to a4fc847 Compare November 12, 2025 00:15
@codecov
Copy link

codecov bot commented Nov 12, 2025

Codecov Report

❌ Patch coverage is 40.90909% with 65 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.36%. Comparing base (9e021fb) to head (e8ce752).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
crates/pop-cli/src/commands/install/mod.rs 40.90% 54 Missing and 11 partials ⚠️
@@            Coverage Diff             @@
##             main     #731      +/-   ##
==========================================
- Coverage   76.49%   76.36%   -0.14%     
==========================================
  Files         115      115              
  Lines       25753    25857     +104     
  Branches    25753    25857     +104     
==========================================
+ Hits        19700    19745      +45     
- Misses       3937     3985      +48     
- Partials     2116     2127      +11     
Files with missing lines Coverage Δ
crates/pop-cli/src/commands/install/mod.rs 48.61% <40.90%> (-1.90%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

* fix: redhat installation

* ci: run installation workflow for internal PRs
Copy link
Collaborator

@moliholy moliholy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@moliholy moliholy merged commit 268aa99 into main Nov 12, 2025
24 checks passed
@moliholy moliholy deleted the al3mart/support-more-os branch November 12, 2025 14:13
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.

3 participants