core: 存放 qcow2 的分区设为 1G

This commit is contained in:
bin456789 2024-01-22 00:21:37 +08:00
parent edf6bd2652
commit 52c9a7caa5
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -885,9 +885,8 @@ create_part() {
mkfs.ext4 -F -L installer /dev/$xda*3 #3 installer
fi
else
# 最大的 qcow2 是 centos81.8g
# gentoo 的镜像解压后是 3.5g,因此设置 installer 分区 1g这样才能在5g硬盘上安装
[ "$distro" = gentoo ] && installer_part_size=1GiB || installer_part_size=2GiB
# fedora debian ubuntu opensuse arch gentoo
installer_part_size=1GiB
parted /dev/$xda -s -- \
mklabel gpt \
mkpart '" "' ext4 1MiB -$installer_part_size \