Update reinstall-fbl.sh

This commit is contained in:
JieXu 2025-11-16 03:51:58 +08:00 committed by GitHub
parent 1882410a95
commit 7a138dbfb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -727,10 +727,16 @@ qemu-img convert -p -O raw "$IMG_QCOW" "$IMG_RAW"
echo
echo "WARNING: dd will be run on $DISK. ALL DATA ON THIS DISK WILL BE LOST!"
read -r -p "Type 'yes' to continue: " ans
if [ "$ans" != "yes" ]; then
error "Operation cancelled by user."
fi
read -r -p "Type 'yes' or 'y' to continue: " ans
case "$ans" in
y|Y|yes|YES|Yes)
# ok
;;
*)
error "Operation cancelled by user."
;;
esac
# 注意subscription-manager unregister 已经从这里移除,
# 请在 RHEL 阶段的脚本里(还在 RHEL 根系统时)单独调用。