From 37cfe313eece73df86994080efcb7375d573a980 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Wed, 5 Jul 2023 22:00:29 +0800 Subject: [PATCH] =?UTF-8?q?common:=20=E4=BF=AE=E5=A4=8D=20aws=20t4g=20arm?= =?UTF-8?q?=20=E6=97=A0=E6=B3=95=E4=B8=8B=E8=BD=BD=20trans=20=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reinstall.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/reinstall.sh b/reinstall.sh index eb5e28c..31f4570 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -622,14 +622,23 @@ mod_alpine_initrd() { cd $tmp_dir zcat /reinstall-initrd | cpio -idm + # 预先下载脚本 + curl -Lo $tmp_dir/trans.start $confhome/trans.sh + # hack # exec /bin/busybox switch_root $switch_root_opts $sysroot $chart_init "$KOPT_init" $KOPT_init_args # 3.17 # exec switch_root $switch_root_opts $sysroot $chart_init "$KOPT_init" $KOPT_init_args # 3.18 line_num=$(grep -E -n '^exec (/bin/busybox )?switch_root' init | cut -d: -f1) line_num=$((line_num - 1)) - # alpine arm initramfs 时间问题 要添加 --no-check-certificate + # 1. alpine arm initramfs 时间问题 要添加 --no-check-certificate + # 2. 神奇的 aws t4g arm 会出现bad header错误, 但甲骨文arm就正常,所以只能预先下载 + # Connecting to raw.githubusercontent.com (185.199.108.133:443) + # 60C0BB2FFAFF0000:error:0A00009C:SSL routines:ssl3_get_record:http request:ssl/record/ssl3_record.c:345: + # ssl_client: SSL_connect + # wget: bad header line: � cat <