File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,31 @@ externalPinsDir="$(dirname "$BASH_SOURCE")/.external-pins"
1111declare -A externalPinsArchesCache=(
1212 # [img:tag]='["arch","arch",...]' # (json array of strings)
1313)
14+
15+ # custom error message (for why Ubuntu 25.10+ does not support riscv64)
16+ message=' '
17+
1418_is_naughty () {
1519 local from=" $1 " ; shift
1620
21+ # DOI cannot support riscv64 on Ubuntu 25.10+ since it uses RVA23 and hardware does not exist yet
22+ # > For Ubuntu 25.10 release we plan to raise the required RISC-V ISA profile family to RVA23
23+ # https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2111715
24+ if [ " $BASHBREW_ARCH " = ' riscv64' ] && [[ " $from " == ' ubuntu:' * ]]; then
25+ normalized=" $( bashbrew list --uniq " $from " ) " # catch when latest changes
26+ case " $normalized " in
27+ ubuntu:22.04 | ubuntu:24.04 | ubuntu:25.04 | ubuntu:jammy* | ubuntu:noble* | ubuntu:plucky* )
28+ # these are fine, let the rest of the tests try them
29+ ;;
30+ * )
31+ # ubuntu 25.10+, uses riscv64 with RVA23
32+ # unsupported in DOI until hardware is acquired
33+ message=' DOI cannot support riscv64 on Ubuntu 25.10+ since it uses RVA23 and hardware does not exist yet'
34+ return 0
35+ ;;
36+ esac
37+ fi
38+
1739 case " $from " in
1840 # "scratch" isn't a real image and is always permissible (on non-Windows)
1941 scratch)
@@ -132,3 +154,7 @@ for naughtyFrom in "${naughtyFroms[@]:-}"; do
132154 echo " - $img (FROM $from ) [$arches ]"
133155 fi
134156done
157+
158+ if [ -n " $message " ]; then
159+ echo " - $message "
160+ fi
You can’t perform that action at this time.
0 commit comments