From 14ef2c82694cbf09e4a35a1c3b2becb7b497192c Mon Sep 17 00:00:00 2001 From: bin456789 Date: Fri, 16 May 2025 19:06:08 +0800 Subject: [PATCH] =?UTF-8?q?windows:=20vista=20=E7=A6=81=E7=94=A8=E6=B0=94?= =?UTF-8?q?=E7=90=83=E9=A9=B1=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/trans.sh b/trans.sh index e588682..36636d3 100644 --- a/trans.sh +++ b/trans.sh @@ -6069,8 +6069,6 @@ EOF # 可改成直接从 github commit 下载 win7 173(sha1) 176(sha256) 全家桶? # 国内可使用 jsdelivr 加速 github - # 2008 安装的气球驱动不能用,需要到硬件管理器重新安装设备才能用,无需更新驱动 - # 2k12 # https://github.com/virtio-win/virtio-win-pkg-scripts/issues/61 # 217 ~ 271 2k12 证书有问题,红帽的 virtio-win-1.9.45 没问题 @@ -6118,8 +6116,13 @@ EOF mkdir -p $drv/virtio mount -o ro $drv/virtio.iso $drv/virtio - # -not -ipath "*/balloon/*" - cp_drivers $drv/virtio -ipath "*/$virtio_sys/$arch/*" "$@" + # vista 如果安装气动驱动,会报错 windows could not configure one or more system components + # 2008 安装的气球驱动不能用,需要到硬件管理器重新安装设备才能用,无需更新驱动 + if [ "$product_ver" = vista ]; then + cp_drivers $drv/virtio -ipath "*/$virtio_sys/$arch/*" "$@" -not -ipath "*/balloon/*" + else + cp_drivers $drv/virtio -ipath "*/$virtio_sys/$arch/*" "$@" + fi else # coreutils 的 cp mv rm 才有 -v 参数 apk add 7zip file coreutils