Skip to content

[Backport release-26.05] switch-to-configuration-ng: /etc/os-release should not be required - #545466

Merged
jmbaur merged 1 commit into
release-26.05from
backport-543312-to-release-26.05
Jul 25, 2026
Merged

jmbaur merged 1 commit into
release-26.05from
backport-543312-to-release-26.05

Conversation

@nixpkgs-ci

@nixpkgs-ci nixpkgs-ci Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Bot-based backport to release-26.05, triggered by a label in #543312.

Before merging, ensure that this backport is acceptable for the release.

Even as a non-committer, if you find that it is not acceptable, leave a comment.

Tip

If you maintain all packages touched by this pull request, and they are all located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this PR using the nixpkgs-merge-bot.

The comment

    // This is a NixOS installation if it has /etc/NIXOS or a proper /etc/os-release.

said OR but the code implemented AND because it errored out
if `/etc/os-release` did not exist.

This was a regression from the Perl-to-Rust rewrite.

See #308801 (review)

Assisted-by: Claude Opus 4.8 in Zoo Code, human comment cleanup
(cherry picked from commit e022b86)
@nixpkgs-ci
nixpkgs-ci Bot requested a review from nh2 July 25, 2026 02:12
@nixpkgs-ci
nixpkgs-ci Bot requested a review from jmbaur July 25, 2026 02:17
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". llm-assisted Contributions that include code generation with LLMs 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 4.workflow: backport This targets a stable branch labels Jul 25, 2026
@jmbaur
jmbaur added this pull request to the merge queue Jul 25, 2026
@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Jul 25, 2026
Merged via the queue into release-26.05 with commit 6e6fceb Jul 25, 2026
33 checks passed
@jmbaur
jmbaur deleted the backport-543312-to-release-26.05 branch July 25, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 4.workflow: backport This targets a stable branch 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants