windows: 更改 installer 分区大小

This commit is contained in:
bin456789 2023-09-29 13:52:11 +08:00
parent d3ccd02fc6
commit 35ad666554
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -507,8 +507,8 @@ create_part() {
error_and_exit "Can't access Windows iso." error_and_exit "Can't access Windows iso."
fi fi
# 按1.1倍iso容量计算分区大小 # 按iso容量计算分区大小512m用于驱动和文件系统自身占用
part_size=$(grep 'Content-Length:' /tmp/headers.log | awk '{print int($2*1.1/1024/1024)}') part_size=$(grep 'Content-Length:' /tmp/headers.log | awk '{print int($2/1024/1024+512)}')
if [ -z "$part_size" ]; then if [ -z "$part_size" ]; then
# 默认值最大的iso 23h2 需要7g # 默认值最大的iso 23h2 需要7g
part_size=$((7 * 1024)) part_size=$((7 * 1024))