feat: add system package upgrade to stage 00

- Add PKG_UPGRADE variable to lib/distro.sh:
  - Debian: sudo apt upgrade -y
  - Fedora: sudo dnf upgrade -y
- Export PKG_UPGRADE so stage scripts can use it
- Add upgrade step to 00-envcheck.sh after the existing cache update
  - Errors are non-fatal (|| warn) to handle fresh installs gracefully
This commit is contained in:
2026-06-07 17:06:19 +10:00
parent 56d84b5ffd
commit 1cc2a52a17
2 changed files with 7 additions and 1 deletions

View File

@@ -36,4 +36,8 @@ fi
info "Updating package cache (first run)..."
$PKG_UPDATE 2>/dev/null || warn "Package cache update had issues."
# ---- System upgrade ----
info "Upgrading all system packages..."
$PKG_UPGRADE 2>/dev/null || warn "System upgrade had issues (this is okay on a fresh install)."
ok "Stage 00 complete."