                  output_dir,
                  Path.join(["releases", "#{release.version}", "#{release.name}.rel"])
                ),
-             :ok <- create_named_boot(:start_clean, rel_dir, output_dir, options),
-             :ok <- create_named_boot(:no_dot_erlang, rel_dir, output_dir, options),
+             :ok <- create_named_boot(release, :start_clean, rel_dir, output_dir, options),
+             :ok <- create_named_boot(release, :no_dot_erlang, rel_dir, output_dir, options),
              do: :ok
 
       {:ok, _, []} ->

        {:error, {:assembler, {:named_boot, name, :unknown}}}

      {:ok, _, []} ->
        with :ok <-
               File.cp(
                 Path.join(rel_dir, "#{name}.boot"),
                 Path.join([output_dir, "bin", "#{name}.boot"])
               ),
             :ok <- File.rm(Path.join(rel_dir, "#{name}.rel")),
             :ok <- File.rm(Path.join(rel_dir, "#{name}.script")) do
          :ok
        else
          {:error, reason} ->

                 output_dir,
                 Path.join(["releases", "#{release.version}", "#{release.name}.rel"])
               ),
             :ok <- create_named_boot(release, :start_clean, rel_dir, output_dir, options),
             :ok <- create_named_boot(release, :no_dot_erlang, rel_dir, output_dir, options),
             do: :ok

      :error ->
