Unverified Commit 4a644c17 authored by Emily's avatar Emily Committed by GitHub
Browse files

Merge pull request #263555 from 5aaee9/master

nixos/systemd: fix make unit failed when unit too large
parents bce760e9 c1ae82f4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -21,11 +21,12 @@ in rec {
        { preferLocalBuild = true;
          allowSubstitutes = false;
          inherit (unit) text;
          passAsFile = [ "text" ];
        }
        ''
          name=${shellEscape name}
          mkdir -p "$out/$(dirname -- "$name")"
          echo -n "$text" > "$out/$name"
          mv "$textPath" "$out/$name"
        ''
    else
      pkgs.runCommand "unit-${mkPathSafeName name}-disabled"