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 @@ -253,7 +253,8 @@ jobs:
253
253
steps :
254
254
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
255
255
with :
256
- fetch-depth : 1
256
+ # 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"
257
+ fetch-depth : 0
257
258
- uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
258
259
with :
259
260
go-version : 1.24.x
Original file line number Diff line number Diff line change @@ -18,17 +18,18 @@ function error_exit() {
18
18
# ```
19
19
function download_template_if_needed() {
20
20
local template=" $1 "
21
- case " ${template} " in
22
- https://* )
23
- tmp_yaml=$( mktemp -d) /template.yaml
24
- curl -sSLf " ${template} " > " ${tmp_yaml} " || return
25
- echo " ${tmp_yaml} "
26
- ;;
27
- * )
28
- test -f " ${template} " || return
29
- echo " ${template} "
30
- ;;
31
- esac
21
+ tmp_yaml=" $( mktemp -d) /template.yaml"
22
+ # The upgrade test doesn't have limactl installed first. The old version wouldn't support `limactl tmpl` anyways.
23
+ if command -v limactl > /dev/null; then
24
+ limactl tmpl copy --embed-all " ${template} " " ${tmp_yaml} " || return
25
+ else
26
+ if [[ $template == https://* ]]; then
27
+ curl -sSLf " ${template} " > " ${tmp_yaml} " || return
28
+ else
29
+ cp " ${template} " " ${tmp_yaml} "
30
+ fi
31
+ fi
32
+ echo " ${tmp_yaml} "
32
33
}
33
34
34
35
# e.g.
Original file line number Diff line number Diff line change 207
207
208
208
if [[ -n ${CHECKS["set-user"]} ]]; then
209
209
INFO ' Testing that user settings can be provided by lima.yaml'
210
- limactl shell " $NAME " grep " ^john:x:4711:4711:John Doe:/home/john-john" /etc/passwd
210
+ limactl shell " $NAME " grep " ^john:x:4711:4711:John Doe:/home/john-john:/usr/bin/bash " /etc/passwd
211
211
fi
212
212
213
213
if [[ -n ${CHECKS["proxy-settings"]} ]]; then
Original file line number Diff line number Diff line change 3
3
# - snapshots
4
4
# - (More to come)
5
5
#
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
21
7
22
8
# 9p is not compatible with `limactl snapshot`
23
9
mountTypesUnsupported : ["9p"]
@@ -26,8 +12,6 @@ mounts:
26
12
writable : true
27
13
- location : " /tmp/lima test dir with spaces"
28
14
writable : true
29
- - location : " /tmp/lima"
30
- writable : true
31
15
32
16
param :
33
17
BOOT : boot
64
48
comment : John Doe
65
49
home : " /home/{{.User}}-{{.User}}"
66
50
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