     :ok
   end
 
+  # Generates start_clean.boot
   defp create_start_clean(rel_dir, output_dir, options) do
     Logger.debug "Generating start_clean.boot"
     case :systools.make_script('start_clean', options) do

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

    make_boot_script!(release, output_dir, rel_dir)
  end

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

    :ok
  end

  # Adds ERTS to the release, if so configured
  defp include_erts!(%Release{profile: %Profile{include_erts: false}}, _rel_dir), do: :ok
  defp include_erts!(%Release{profile: %Profile{include_erts: include_erts}, output_dir: output_dir} = release, rel_dir) do
    prefix = case include_erts do
               true -> "#{:code.root_dir}"
               p when is_binary(p) -> Path.absname(p)
