File tree Expand file tree Collapse file tree 4 files changed +18
-30
lines changed Expand file tree Collapse file tree 4 files changed +18
-30
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,8 @@ jobs:
256256 steps :
257257 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
258258 with :
259- fetch-depth : 1
259+ # To avoid "failed to load YAML file \"templates/experimental/riscv64.yaml\": can't parse builtin Lima version \"3f3a6f6\": 3f3a6f6 is not in dotted-tri format"
260+ fetch-depth : 0
260261 - uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
261262 with :
262263 go-version : 1.24.x
Original file line number Diff line number Diff line change @@ -15,17 +15,18 @@ function error_exit() {
1515# ```
1616function download_template_if_needed() {
1717 local template=" $1 "
18- case " ${template} " in
19- https://* )
20- tmp_yaml=$( mktemp -d) /template.yaml
21- curl -sSLf " ${template} " > " ${tmp_yaml} " || return
22- echo " ${tmp_yaml} "
23- ;;
24- * )
25- test -f " ${template} " || return
26- echo " ${template} "
27- ;;
28- esac
18+ tmp_yaml=" $( mktemp -d) /template.yaml"
19+ # The upgrade test doesn't have limactl installed first. The old version wouldn't support `limactl tmpl` anyways.
20+ if command -v limactl > /dev/null; then
21+ limactl tmpl copy --embed-all " ${template} " " ${tmp_yaml} " || return
22+ else
23+ if [[ $template == https://* ]]; then
24+ curl -sSLf " ${template} " > " ${tmp_yaml} " || return
25+ else
26+ cp " ${template} " " ${tmp_yaml} "
27+ fi
28+ fi
29+ echo " ${tmp_yaml} "
2930}
3031
3132# e.g.
Original file line number Diff line number Diff line change 176176
177177if [[ -n ${CHECKS["set-user"]} ]]; then
178178 INFO ' Testing that user settings can be provided by lima.yaml'
179- limactl shell " $NAME " grep " ^john:x:4711:4711:John Doe:/home/john-john" /etc/passwd
179+ limactl shell " $NAME " grep " ^john:x:4711:4711:John Doe:/home/john-john:/usr/bin/bash " /etc/passwd
180180fi
181181
182182INFO " Testing proxy settings are imported"
Original file line number Diff line number Diff line change 33# - snapshots
44# - (More to come)
55#
6- # This template requires Lima v1.0.0-alpha.0 or later.
7- images :
8- # Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
9- - location : " https://cloud-images.ubuntu.com/releases/22.04/release-20220902/ubuntu-22.04-server-cloudimg-amd64.img"
10- arch : " x86_64"
11- digest : " sha256:c777670007cc5f132417b9e0bc01367ccfc2a989951ffa225bb1952917c3aa81"
12- - location : " https://cloud-images.ubuntu.com/releases/22.04/release-20220902/ubuntu-22.04-server-cloudimg-arm64.img"
13- arch : " aarch64"
14- digest : " sha256:9620f479bd5a6cbf1e805654d41b27f4fc56ef20f916c8331558241734de81ae"
15- # Fallback to the latest release image.
16- # Hint: run `limactl prune` to invalidate the cache
17- - location : " https://cloud-images.ubuntu.com/releases/24.04/release/ubuntu-24.04-server-cloudimg-amd64.img"
18- arch : " x86_64"
19- - location : " https://cloud-images.ubuntu.com/releases/24.04/release/ubuntu-24.04-server-cloudimg-arm64.img"
20- arch : " aarch64"
6+ base : template://ubuntu-22.04
217
228# 9p is not compatible with `limactl snapshot`
239mountTypesUnsupported : ["9p"]
@@ -26,8 +12,6 @@ mounts:
2612 writable : true
2713- location : " /tmp/lima test dir with spaces"
2814 writable : true
29- - location : " /tmp/lima"
30- writable : true
3115
3216param :
3317 BOOT : boot
6448 comment : John Doe
6549 home : " /home/{{.User}}-{{.User}}"
6650 uid : 4711
51+ # Ubuntu has identical /bin/bash and /usr/bin/bash
52+ shell : /usr/bin/bash
You can’t perform that action at this time.
0 commit comments