Rollup merge of #115090 - eopb:dont-check-lib-bootstrap, r=ozkanonur

Always use `os-release` rather than `/lib` to detect `NixOS` (bootstrap)

[Two users over on zulip](https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/Bootstrapping.20on.20NixOS) bumped into issues where NixOS wasn't being properly detected.

I believe this was caused by the presence of `/lib` on their machines. `/lib` is not standard on NixOS but can still be created by users or scripts.

We are already checking `/etc/os-release`. The presence of `ID=nixos` in it's output should be trustworthy and we shouldn't then go on to also check for `/lib`.
This commit is contained in:
Michael Goulet 2023-08-22 09:00:50 -07:00 committed by GitHub
commit 8e955fa0ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

Diff content is not available