From b47b68e626495febf0de09b6c16d6f469a299a2f Mon Sep 17 00:00:00 2001 From: bin456789 Date: Fri, 25 Aug 2023 23:36:32 +0800 Subject: [PATCH] =?UTF-8?q?alpine:=20=E4=BF=AE=E5=A4=8D=E5=86=85=E6=A0=B8?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trans.sh b/trans.sh index 0e20926..ffd441a 100644 --- a/trans.sh +++ b/trans.sh @@ -391,6 +391,8 @@ EOF # 如果是 vm 就用 virt 内核 if is_virt; then kernel_opt="-k virt" + else + kernel_opt="-k lts" fi # 重置为官方仓库配置 @@ -1350,6 +1352,7 @@ fi setup_tty_and_log clear_previous +add_community_repo # 找到主硬盘 # shellcheck disable=SC2010 @@ -1359,7 +1362,6 @@ xda=$(ls /dev/ | grep -Ex 'sda|hda|xda|vda|xvda|nvme0n1') if [ "$distro" != "alpine" ]; then mod_motd setup_nginx_if_enough_ram - add_community_repo fi # shellcheck disable=SC2154