From 4ce85719d487ae3b1a50ff7e608289c3859fe04a Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sun, 22 Oct 2023 18:54:30 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E6=8F=90=E5=89=8D=E6=89=A9=E5=AE=B9?= =?UTF-8?q?=E6=97=B6=E7=94=A8=E5=91=BD=E4=BB=A4=E8=8E=B7=E5=8F=96=E6=9C=80?= =?UTF-8?q?=E5=90=8E=E4=B8=80=E4=B8=AA=E5=88=86=E5=8C=BA=E7=9A=84=E7=BC=96?= =?UTF-8?q?=E5=8F=B7?= 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 b60e70a..3103649 100644 --- a/trans.sh +++ b/trans.sh @@ -1352,8 +1352,8 @@ resize_after_install_cloud_image() { apk add parted if parted /dev/$xda -s print 2>&1 | grep 'Not all of the space'; then printf "fix" | parted /dev/$xda print ---pretend-input-tty - # TODO: 获取 ext4 分区编号 - [ "$distro" = debian ] && system_part_num=1 || system_part_num=3 + + system_part_num=$(parted /dev/$xda -m print | tail -1 | cut -d: -f1) printf "yes" | parted /dev/$xda resizepart $system_part_num 100% ---pretend-input-tty update_part /dev/$xda