diff --git a/install.sh b/install.sh index f9a953a..d72e4c2 100644 --- a/install.sh +++ b/install.sh @@ -165,6 +165,20 @@ apply_profile_from_feasibility() { esac } +warn_tier_vs_feasibility() { + [ -f "$FEASIBILITY_JSON" ] || return 0 + local recommended_tier recommended_profile + recommended_tier="$(json_field recommendation.recommended_tier)" + recommended_profile="$(json_field recommendation.recommended_profile)" + [ -n "$recommended_tier" ] || return 0 + if [ "$recommended_tier" != "$TIER" ]; then + echo "⚠ Feasibility recommends tier '$recommended_tier' / profile '${recommended_profile:-unknown}' for this hardware." + echo " Selected tier remains '$TIER'; unsupported services may be skipped by the feasibility profile." + else + echo "✓ Feasibility matches selected tier '$TIER' / profile '${recommended_profile:-unknown}'." + fi +} + has_nvidia_pci_gpu() { for vendor_file in /sys/bus/pci/devices/*/vendor; do [ -f "$vendor_file" ] || continue @@ -232,6 +246,9 @@ run_phase2() { echo "║ Nexus One AI — Phase 2: Stack ║" echo "╚══════════════════════════════════════════╝" + apply_profile_from_feasibility + warn_tier_vs_feasibility + GPU_AVAILABLE=false if ! has_working_nvidia_driver; then echo "No working NVIDIA GPU/driver found. Continuing with CPU/non-GPU installation path." @@ -292,7 +309,6 @@ run_feasibility if [ "$SOFTWARE_ONLY" = true ]; then PHASE="2" - apply_profile_from_feasibility fi install_ansible