Skip to content

Commit d44916d

Browse files
committed
nixos/activation: allowed quoted values in /etc/os-release
1 parent 0e17a0f commit d44916d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nixos/modules/system/activation/switch-to-configuration.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
# This is a NixOS installation if it has /etc/NIXOS or a proper
6060
# /etc/os-release.
6161
die "This is not a NixOS installation!\n" unless
62-
-f "/etc/NIXOS" || (read_file("/etc/os-release", err_mode => 'quiet') // "") =~ /ID=nixos/s;
62+
-f "/etc/NIXOS" || (read_file("/etc/os-release", err_mode => 'quiet') // "") =~ /ID="?nixos"?/s;
6363

6464
openlog("nixos", "", LOG_USER);
6565

0 commit comments

Comments
 (0)