We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6470c7 commit 919a8a5Copy full SHA for 919a8a5
src/bootstrap/bootstrap.py
@@ -580,7 +580,13 @@ def fix_bin_or_dylib(self, fname):
580
if ostype != "Linux":
581
return
582
583
- if not os.path.exists("/etc/NIXOS"):
+ # Use `/etc/os-release` instead of `/etc/NIXOS`.
584
+ # The latter one does not exist on NixOS when using tmpfs as root.
585
+ try:
586
+ with open("/etc/os-release", "r") as f:
587
+ if not any(line.strip() == "ID=nixos" for line in f):
588
+ return
589
+ except FileNotFoundError:
590
591
if os.path.exists("/lib"):
592
0 commit comments