mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
nixos/activation: allowed quoted values in /etc/os-release
This commit is contained in:
parent
0e17a0fea6
commit
d44916d12f
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ $ENV{NIXOS_ACTION} = $action;
|
||||||
# This is a NixOS installation if it has /etc/NIXOS or a proper
|
# This is a NixOS installation if it has /etc/NIXOS or a proper
|
||||||
# /etc/os-release.
|
# /etc/os-release.
|
||||||
die "This is not a NixOS installation!\n" unless
|
die "This is not a NixOS installation!\n" unless
|
||||||
-f "/etc/NIXOS" || (read_file("/etc/os-release", err_mode => 'quiet') // "") =~ /ID=nixos/s;
|
-f "/etc/NIXOS" || (read_file("/etc/os-release", err_mode => 'quiet') // "") =~ /ID="?nixos"?/s;
|
||||||
|
|
||||||
openlog("nixos", "", LOG_USER);
|
openlog("nixos", "", LOG_USER);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue