Unverified Commit ec2ac8ec authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

Merge pull request #275485 from Ex-32/binfmt-emulatedsystems-fix

nixos/binfmt: added assertion to prevent emulation of current system
parents dd3bc77a 1f873183
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;