Throttle disk write to prevent etcd puking during upgrade

This commit is contained in:
2026-04-07 17:34:38 +08:00
parent 11e2c96173
commit bc4b124246
17 changed files with 639 additions and 25 deletions

View File

@@ -235,6 +235,9 @@ fi
if [ -z "$ROOT_DEV" ]; then
ROOT_DEV="$(find_fallback_root_for_slot "$BOOT_PART" || true)"
if [ -n "$ROOT_DEV" ]; then
if [ -z "$BOOT_PART" ]; then
BOOT_PART=A
fi
log "Preferred root not found. Falling back to first valid root device: $ROOT_DEV"
fi
fi