Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/hooks/archiso
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2014-06-28 00:35:51 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2014-06-28 00:35:51 -0300
commit5506e1e5a20f56eda4019b1baba16f7179371e61 (patch)
treef522ad9217829afda64896e33ddccc82736ed557 /hooks/archiso
parent212a4aba2b6743c208a704d9819dc84e0bd706df (diff)
[archiso] Rework checksum function
Diffstat (limited to 'hooks/archiso')
-rw-r--r--hooks/archiso10
1 files changed, 5 insertions, 5 deletions
diff --git a/hooks/archiso b/hooks/archiso
index c5fd062..26bdedc 100644
--- a/hooks/archiso
+++ b/hooks/archiso
@@ -93,8 +93,8 @@ _mnt_dev() {
_verify_checksum() {
local _status
- cd "/run/archiso/bootmnt/${archisobasedir}"
- md5sum -c checksum.${arch}.md5 > /tmp/checksum.${arch}.log 2>&1
+ cd "/run/archiso/bootmnt/${archisobasedir}/${arch}"
+ md5sum -c airootfs.md5 > /tmp/checksum.log 2>&1
_status=$?
cd "${OLDPWD}"
return ${_status}
@@ -142,17 +142,17 @@ archiso_mount_handler() {
fi
if [[ "${checksum}" == "y" ]]; then
- if [[ -f "/run/archiso/bootmnt/${archisobasedir}/checksum.${arch}.md5" ]]; then
+ if [[ -f "/run/archiso/bootmnt/${archisobasedir}/${arch}/airootfs.md5" ]]; then
msg -n ":: Self-test requested, please wait..."
if _verify_checksum; then
msg "done. Checksum is OK, continue booting."
else
echo "ERROR: one or more files are corrupted"
- echo "see /tmp/checksum.${arch}.log for details"
+ echo "see /tmp/checksum.log for details"
launch_interactive_shell
fi
else
- echo "ERROR: checksum=y option specified but checksum.${arch}.md5 not found"
+ echo "ERROR: checksum=y option specified but ${archisobasedir}/${arch}/airootfs.md5 not found"
launch_interactive_shell
fi
fi