summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-11-28 12:28:03 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-11-28 12:28:03 -0300
commit5b9eba924d0e700ba9023e5f73bcccc5f8ee28c8 (patch)
tree802d9c63453f3e3df48df7b25f8ec738040fb7a5
parentcd359bc37a23bdfdb751883f33f6972229648cf7 (diff)
[archiso] Add checksum support to pxe_curl
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
-rw-r--r--archiso/hooks/archiso_pxe_curl4
1 files changed, 4 insertions, 0 deletions
diff --git a/archiso/hooks/archiso_pxe_curl b/archiso/hooks/archiso_pxe_curl
index 7a553ad..80315bc 100644
--- a/archiso/hooks/archiso_pxe_curl
+++ b/archiso/hooks/archiso_pxe_curl
@@ -55,6 +55,10 @@ archiso_pxe_curl_mount_handler () {
fi
done < "${_aitab_file}"
+ if [[ "${checksum}" == "y" ]]; then
+ _curl_get "${archiso_curl_url}${archisobasedir}/checksum.${arch}.md5" "${archisobasedir}"
+ fi
+
mkdir -p "/run/archiso/bootmnt"
mount -o bind /run/archiso/curlspace /run/archiso/bootmnt
else