You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refines `incus_check` to inspect `incus info` probe errors and return targeted guidance for daemon-down, permission, and uninitialized-install cases instead of a single generic start command. Updates the container OS guard to treat cross-distribution mismatches as a separate "WRONG OS" condition, with clearer remediation and dialog text to avoid impossible upgrade advice.
Copy file name to clipboardExpand all lines: ui/menu.func
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -862,8 +862,15 @@ check_container_os_guard() {
862
862
return 0
863
863
fi
864
864
865
-
local mismatch_detail remediation
866
-
if [[ "$downgraded_target"-eq 1 ]];then
865
+
local mismatch_detail remediation dialog_title="OS VERSION MISMATCH"
866
+
if [[ "$cur_os"!="$rec_os" ]];then
867
+
# Two different distributions. Their version numbers are not comparable and
868
+
# there is no upgrade path between them, so the version-mismatch wording
869
+
# produced impossible advice like "upgrade the container OS to debian 26.04".
870
+
dialog_title="WRONG OS"
871
+
mismatch_detail="This container runs ${cur_os}${cur_ver}, but ${APP:-this script} is built for ${rec_os}.\n\nThese are different distributions - ${cur_os} cannot be upgraded to ${rec_os}, and their version numbers are unrelated.\n\nRecommended: create a new ${rec_os}${rec_ver} container and install ${APP:-the application} there."
872
+
remediation="Create a new ${rec_os}${rec_ver} container instead - ${cur_os} cannot be upgraded to ${rec_os}"
873
+
elif [[ "$downgraded_target"-eq 1 ]];then
867
874
mismatch_detail="Your container runs ${cur_os}${cur_ver}, which is newer than what this script now targets (${rec_os}${rec_ver}).\n\nThe target was likely lowered on purpose, e.g. because ${APP:-the app} had problems on newer OS versions - check the GitHub issues for ${APP:-this app} for details.\n\nContinuing on ${cur_ver} often still works, but isn't guaranteed. If you are unsure, ask in our Discord (https://discord.gg/3AnUqsXnmK) before continuing."
868
875
remediation="This script now targets the older ${rec_os}${rec_ver}. Check the GitHub issues for ${APP:-this app}, or ask in Discord (https://discord.gg/3AnUqsXnmK) if you are unsure"
0 commit comments