File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -279,15 +279,15 @@ prompt_for_destruction() {
279
279
download_and_verify () {
280
280
local file_url=" $1 "
281
281
local local_path=" $2 "
282
- local expected_sha1 =" $3 "
282
+ local expected_sha256 =" $3 "
283
283
for try in {0..3}; do
284
284
if [ ${try} -eq 0 ]; then
285
285
[ -e " ${local_path} " ] || continue
286
286
else
287
287
wget -O " ${local_path} " " ${file_url} "
288
288
fi
289
- set -- $( sha1sum " ${local_path} " )
290
- if [ $1 = " ${expected_sha1 } " ]; then
289
+ set -- $( sha256sum " ${local_path} " )
290
+ if [ $1 = " ${expected_sha256 } " ]; then
291
291
return 0
292
292
else
293
293
rm -f " ${local_path} "
@@ -405,14 +405,14 @@ stage1_install() {
405
405
chmod 0444 /d2a/work/doroot/README
406
406
407
407
log " Downloading bootstrap tarball ..."
408
- set -- $( wget -qO- ${archlinux_mirror} /iso/latest/sha1sums .txt |
408
+ set -- $( wget -qO- ${archlinux_mirror} /iso/latest/sha256sums .txt |
409
409
grep " archlinux-bootstrap-[^-]*-${target_architecture} .tar.gz" )
410
- local expected_sha1 =$1
410
+ local expected_sha256 =$1
411
411
local bootstrap_filename=$2
412
412
download_and_verify \
413
413
${archlinux_mirror} /iso/latest/${bootstrap_filename} \
414
414
/d2a/bootstrap.tar.gz \
415
- ${expected_sha1 }
415
+ ${expected_sha256 }
416
416
417
417
log " Extracting bootstrap tarball ..."
418
418
tar -xzf /d2a/bootstrap.tar.gz \
You can’t perform that action at this time.
0 commit comments