Apply feasibility profile during stack install
This commit is contained in:
parent
492a4b191a
commit
e71b069014
18
install.sh
18
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user