anchor.diff:                      file:rename(filename:join(OutputDir, [Name, ".tar.gz"]), TarFile),
                       {ok, State};
                   false ->
  -                    %% unpack the tarball to a temporary directory and repackage it with
  -                    %% the overlays and other files we need to complete the target system
  -                    TempDir = rlx_file_utils:mkdtemp(),
  -                    try
  -                        update_tar(ExtraFiles, State, TempDir, OutputDir, Name, Vsn, ErtsVersion)
  -                    catch
  -                        ?WITH_STACKTRACE(Type, Exception, Stacktrace)
  -                           ?log_debug("exception updating tarball ~p:~p stacktrace=~p",
  -                                      [Type, Exception, Stacktrace]),
  -                           erlang:error(?RLX_ERROR({tar_update_error, Type, Exception}))
  -                    after
  -                        rlx_file_utils:remove(TempDir, [recursive])
  -                    end
  +                    %% have to manually add the extra files to the tarball
  +                    update_tar(ExtraFiles, State, OutputDir, Name, Vsn, rlx_release:erts(Release))
               end;
           error ->
               erlang:error(?RLX_ERROR({tar_unknown_generation_error, Name, Vsn}));
  
positive.code:     io_lib:format("Tarball generation errors:~n~s", [Module:format_error(Errors)]).
  
  %%
  
  %% used to add additional files to the release tarball when using systools
  %% before the `extra_files' feature was added to `make_tar'
  
negative.code: make_tar(Release, OutputDir, State) ->
      Name = rlx_release:name(Release),
      Vsn = rlx_release:vsn(Release),
      ?log_debug("beginning make_tar for release ~p-~s", [Name, Vsn]),
  
      ExtraFiles = extra_files(Release, OutputDir, State),
      Opts = make_tar_opts(ExtraFiles, Release, OutputDir, State),
  
      try systools:make_tar(filename:join([OutputDir, "releases", Vsn, Name]), Opts) of
          Result when Result =:= ok orelse (is_tuple(Result) andalso
                                            element(1, Result) =:= ok) ->
              maybe_print_warnings(Result),
              case rlx_state:is_relx_sasl(State) of
                  true ->
                      %% we used extra_files to copy in the overlays
                      %% nothing to do now but rename the tarball to <relname>-<vsn>.tar.gz
  