mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-19 04:49:13 +08:00
windows: virt-what 可能返回多个结果,因此配合 grep 使用
This commit is contained in:
parent
a66cbdfb41
commit
e68103a4db
3
trans.sh
3
trans.sh
@ -253,7 +253,8 @@ if [ "$distro" = "windows" ]; then
|
||||
mount /os/windows.iso /iso
|
||||
|
||||
# 下载 virtio 驱动
|
||||
if [ "$(virt-what)" = kvm ]; then
|
||||
# virt-what 可能返回多个结果,因此配合 grep 使用
|
||||
if virt-what | grep kvm; then
|
||||
case $(echo "$image_name" | tr '[:upper:]' '[:lower:]') in
|
||||
'windows server 2022'*) sys=2k22 ;;
|
||||
'windows server 2019'*) sys=2k19 ;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user