core: 先清除分区表

fixes #638
This commit is contained in:
bin456789
2026-06-19 21:48:04 +08:00
parent eb071a1b97
commit ff53483461

View File

@@ -2868,9 +2868,11 @@ create_part() {
apk add dosfstools
fi
# 清除分区签名
# TODO: 先检测iso链接/各种链接
# wipefs -a /dev/$xda
# 清除分区
# https://github.com/bin456789/reinstall/issues/638
apk add wipefs
wipefs -a -f /dev/$xda
apk del wipefs
# shellcheck disable=SC2154
if [ "$distro" = windows ]; then