浏览代码

Updated digest verification of stage3 images

Maxim Kammerer 13 年之前
父节点
当前提交
a6d117ed1d
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      mkroot

+ 3 - 3
mkroot

@@ -136,9 +136,9 @@ if [ "$2" = fresh  -o  ! -d ${LIVECD}/src ]; then
     fi
 
 
-    sinfo "Verifying stage3 MD5 and SHA1 digests"
-    (cd ${LIVECD}/mirror/stage3; md5sum  --status -c ${stage3file}.DIGESTS.asc)
-    (cd ${LIVECD}/mirror/stage3; sha1sum --status -c ${stage3file}.DIGESTS.asc)
+    sinfo "Verifying stage3 SHA512 digests"
+    sed -i '6,7d; 10,11d' ${LIVECD}/mirror/stage3/${stage3file}.DIGESTS.asc
+    (cd ${LIVECD}/mirror/stage3; sha512sum -c ${stage3file}.DIGESTS.asc)
 
 
     if tar --version | grep -q '(GNU tar)'; then