From a2d2022ccf3e24b4083d887741f13e826887e0a4 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 31 Jul 2012 19:52:09 -0300 Subject: [PATCH] archiso_pxe_http: curl should follow redirects Signed-off-by: Florian Pritz --- archiso/hooks/archiso_pxe_http | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archiso/hooks/archiso_pxe_http b/archiso/hooks/archiso_pxe_http index ae56210..32e8ab0 100644 --- a/archiso/hooks/archiso_pxe_http +++ b/archiso/hooks/archiso_pxe_http @@ -19,7 +19,7 @@ _curl_get() { local _dst="${2}" msg ":: Downloading '${_url}'" - if ! curl -f -o "/run/archiso/httpspace/${archisobasedir}${_dst}/${_url##*/}" --create-dirs "${_url}"; then + if ! curl -L -f -o "/run/archiso/httpspace/${archisobasedir}${_dst}/${_url##*/}" --create-dirs "${_url}"; then echo "ERROR: Downloading '${_url}'" echo " Falling back to interactive prompt" echo " You can try to fix the problem manually, log out when you are finished"