From 275a3fc36f79d51b86596035a86c02866ba78543 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sat, 4 Nov 2023 00:50:50 +0800 Subject: [PATCH] =?UTF-8?q?windows:=20=E4=BF=AE=E5=A4=8D=E4=BA=86=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E5=88=A4=E6=96=AD=20sda=20=E5=8F=AA=E8=AF=BB=EF=BC=8C?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E6=97=A0=E6=B3=95=E5=AE=89=E8=A3=85=20iso?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trans.sh b/trans.sh index d17b4e9..f452d2c 100644 --- a/trans.sh +++ b/trans.sh @@ -1754,7 +1754,7 @@ install_windows() { # sda 只读,放的是 cloud-init 配置,通常 win 有驱动,能识别 # 而 vda/nvme/xen 加载驱动后才能识别,所以这时 disk_id 应该为 1 if [ -e "/sys/class/block/sda/ro" ] && - [ "$(cat /sys/class/block/sda/ro)" = 0 ]; then + [ "$(cat /sys/class/block/sda/ro)" = 1 ]; then disk_id=1 else disk_id=0