From b00b4cded024076e2d4582113b06203089848dec Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sun, 1 Dec 2024 00:08:30 +0800 Subject: [PATCH] =?UTF-8?q?alpine:=20=E6=97=A0=E9=9C=80=E6=89=8B=E5=8A=A8?= =?UTF-8?q?=E5=AE=89=E8=A3=85=20firmware?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit setup-disk 会自动安装合适的 firmware --- trans.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/trans.sh b/trans.sh index 44296ff..1200bd0 100644 --- a/trans.sh +++ b/trans.sh @@ -1256,7 +1256,8 @@ install_alpine() { # ERROR: grub-2.12-r5.trigger: script exited with error 1 mount_pseudo_fs /os - # 安装固件微码 + # setup-disk 会自动选择固件,但不包括微码? + # https://github.com/alpinelinux/alpine-conf/blob/e18384a85e93c9cad30437a0a06802a3f385e550/setup-disk.in#L421 # shellcheck disable=SC2046 if is_need_ucode_firmware; then chroot /os apk add $(get_ucode_firmware_pkgs) @@ -2489,9 +2490,11 @@ get_ucode_firmware_pkgs() { esac case "$os-$(get_cpu_vendor)" in - alpine-intel) echo linux-firmware linux-firmware-intel intel-ucode ;; - alpine-amd) echo linux-firmware linux-firmware-amd linux-firmware-amd-ucode amd-ucode ;; - alpine-*) echo linux-firmware ;; + # setup-alpine 会自动选择 firmware + # https://github.com/alpinelinux/alpine-conf/blob/e18384a85e93c9cad30437a0a06802a3f385e550/setup-disk.in#L421 + alpine-intel) echo intel-ucode ;; + alpine-amd) echo amd-ucode ;; + alpine-*) ;; debian-intel) echo firmware-linux intel-microcode ;; debian-amd) echo firmware-linux amd64-microcode ;;