mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-31 19:08:07 +08:00
windows: 更改 installer 分区大小
This commit is contained in:
parent
d3ccd02fc6
commit
35ad666554
4
trans.sh
4
trans.sh
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user