From 35ad666554510ddb6fd4a79a86c6f86c00fcec81 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Fri, 29 Sep 2023 13:52:11 +0800 Subject: [PATCH] =?UTF-8?q?windows:=20=E6=9B=B4=E6=94=B9=20installer=20?= =?UTF-8?q?=E5=88=86=E5=8C=BA=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trans.sh b/trans.sh index 8437371..3f7e8c6 100644 --- a/trans.sh +++ b/trans.sh @@ -507,8 +507,8 @@ create_part() { error_and_exit "Can't access Windows iso." fi - # 按1.1倍iso容量计算分区大小 - part_size=$(grep 'Content-Length:' /tmp/headers.log | awk '{print int($2*1.1/1024/1024)}') + # 按iso容量计算分区大小,512m用于驱动和文件系统自身占用 + part_size=$(grep 'Content-Length:' /tmp/headers.log | awk '{print int($2/1024/1024+512)}') if [ -z "$part_size" ]; then # 默认值,最大的iso 23h2 需要7g part_size=$((7 * 1024))