Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/hooks/archiso
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2017-10-16 09:12:50 +0200
committerGerardo Exequiel Pozzi <vmlinuz386@gmail.com>2017-10-17 23:54:55 -0300
commit51182ec029a452f1aae79f10678f415b5214c050 (patch)
treea105182caffc18fa8656aeee124b3da133ab2454 /hooks/archiso
parent9577bc31aef4ed864449deecf5b0652d754ffbb5 (diff)
use a stronger hashing algorithm
Nobody wants to use md5 these days... Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'hooks/archiso')
-rw-r--r--hooks/archiso6
1 files changed, 3 insertions, 3 deletions
diff --git a/hooks/archiso b/hooks/archiso
index b78f4db..753e3da 100644
--- a/hooks/archiso
+++ b/hooks/archiso
@@ -99,7 +99,7 @@ _mnt_dev() {
_verify_checksum() {
local _status
cd "/run/archiso/bootmnt/${archisobasedir}/${arch}"
- md5sum -c airootfs.md5 > /tmp/checksum.log 2>&1
+ sha512sum -c airootfs.sha512 > /tmp/checksum.log 2>&1
_status=$?
cd "${OLDPWD}"
return ${_status}
@@ -153,7 +153,7 @@ archiso_mount_handler() {
fi
if [[ "${checksum}" == "y" ]]; then
- if [[ -f "/run/archiso/bootmnt/${archisobasedir}/${arch}/airootfs.md5" ]]; then
+ if [[ -f "/run/archiso/bootmnt/${archisobasedir}/${arch}/airootfs.sha512" ]]; then
msg -n ":: Self-test requested, please wait..."
if _verify_checksum; then
msg "done. Checksum is OK, continue booting."
@@ -163,7 +163,7 @@ archiso_mount_handler() {
launch_interactive_shell
fi
else
- echo "ERROR: checksum=y option specified but ${archisobasedir}/${arch}/airootfs.md5 not found"
+ echo "ERROR: checksum=y option specified but ${archisobasedir}/${arch}/airootfs.sha512 not found"
launch_interactive_shell
fi
fi