Unverified Commit d762978d authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

dockerTools: fix failing `etc` test case (#509308)

parents 1975f872 23f0f8ca
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -803,6 +803,10 @@ rec {
          }
        )
      );
      etcCmd = pkgs.writeScript "etc-cmd" ''
        #!${pkgs.busybox}/bin/sh
        ${pkgs.busybox}/bin/cat /etc/some-config-file
      '';
    in
    pkgs.dockerTools.streamLayeredImage {
      name = "etc";
@@ -812,10 +816,7 @@ rec {
        mkdir -p /etc
        ${nixosCore.config.system.build.etcActivationCommands}
      '';
      config.Cmd = pkgs.writeScript "etc-cmd" ''
        #!${pkgs.busybox}/bin/sh
        ${pkgs.busybox}/bin/cat /etc/some-config-file
      '';
      config.Cmd = [ etcCmd ];
    };

  # Example export of the bash image