Merge pull request #275485 from Ex-32/binfmt-emulatedsystems-fix
nixos/binfmt: added assertion to prevent emulation of current system
This commit is contained in:
@@ -280,7 +280,7 @@ in {
|
||||
};
|
||||
|
||||
config = {
|
||||
boot.binfmt.registrations = builtins.listToAttrs (map (system: {
|
||||
boot.binfmt.registrations = builtins.listToAttrs (map (system: assert system != pkgs.system; {
|
||||
name = system;
|
||||
value = { config, ... }: let
|
||||
interpreter = getEmulator system;
|
||||
|
||||
Reference in New Issue
Block a user