Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: uBlue OS should be detected as FedoraImmutable #1043

Merged
merged 4 commits into from
Feb 17, 2025

Conversation

dtomvan
Copy link
Contributor

@dtomvan dtomvan commented Feb 16, 2025

  • refactor(parse_os_release): Don't rely on specific IDs for Fedora Immutable
  • feat: add aurora,bluefin,coreos support
  • fix: bazzite should be detected as FedoraImmutable

Closes: #1033

What does this PR do

It does what #1034 does but refactored to work in general for any fork of
a Fedora immutable desktop. Thanks to @SteveLauC for their initial work on this
issue. I included their commit as well, because their test case came in handy.

Standards checklist

  • The PR title is descriptive
  • I have read CONTRIBUTING.md
  • Optional: I have tested the code myself
  • If this PR introduces new user-facing messages they are translated

For new steps

  • Optional: Topgrade skips this step where needed
  • Optional: The --dry-run option works with this step
  • Optional: The --yes option works with this step if it is supported by
    the underlying command

If you developed a feature or a bug fix for someone else and you do not have the
means to test it, please tag this person here.

dtomvan and others added 4 commits February 16, 2025 20:59
…mmutable

Instead match `ID=fedora` or `ID_LIKE=fedora` and decide wether or not
the distro is immutable by `VARIANT`.
The `os_release`s came from the following images:

- ghcr.io/ublue-os/aurora:93f0fd9f20b3
- ghcr.io/ublue-os/bluefin:5d37394a5d4b
- ghcr.io/ublue-os/ucore:63cd1200c344
@SteveLauC
Copy link
Member

Thanks

@SteveLauC SteveLauC merged commit fa3e472 into topgrade-rs:main Feb 17, 2025
12 checks passed
@dtomvan
Copy link
Contributor Author

dtomvan commented Feb 17, 2025

It's no problem. I really enjoy using topgrade as my updater on NixOS and uBlue. But I personally encountered this issue on Aurora, so I figured I'd fix it for myself as well 😆 . I also have a feature I'd like to see for NixOS, so I guess I'll be making an issue for that as well. I'll see if I can implement it myself though, shouldn't be too difficult.

@dtomvan dtomvan deleted the dtomvan/fix/bazzite branch February 17, 2025 11:07
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.

topgrade executes dnf on rpm-ostree based Bazzite
2 participants