     :ok
   end
 
+  # Generates vm.args
   defp generate_vm_args!(%Release{profile: %Profile{vm_args: nil}} = release, rel_dir) do
     Logger.debug "Generating vm.args"
     contents = Utils.template("vm.args", [rel_name: "#{release.name}"])

    generate_start_erl_data!(release, rel_dir)
    generate_vm_args!(release, rel_dir)
    generate_sys_config!(release, rel_dir)
    include_erts!(release, output_dir, rel_dir)
  end

  defp generate_relup(%Release{is_upgrade: false}, _output_dir, _rel_dir), do: :ok
  defp generate_relup(%Release{name: name, upgrade_from: upfrom} = release, output_dir, rel_dir) do
    Logger.debug "Generating relup for #{name}"
    v1_rel = Path.join([output_dir, "releases", upfrom, "#{name}.rel"])
    v2_rel = Path.join(rel_dir, "#{name}.rel")

    File.chmod!(nodetool_dest, 0o755)
    File.chmod!(install_upgrade_dest, 0o755)

    make_boot_script!(release, rel_dir)
  end

  # Generates .boot script
  defp make_boot_script!(%Release{output_dir: output_dir} = release, rel_dir) do
    Logger.debug "Generating boot script"
    options = [{:path, ['#{rel_dir}' | get_code_paths(release)]},
               {:outdir, '#{rel_dir}'},
               {:variables, [{'ERTS_LIB_DIR', :code.lib_dir()}]},
               :no_warn_sasl,
