Skip to content

Commit 00e9d66

Browse files
committed
Ubuntu: skip kernel 5.13.0-35.40 (5.4.0-103.117 for 20.04 LTS)
Ubuntu kernel 5.13.0-35.40 (5.4.0-103.117 for 20.04 LTS) is broken for ARM: `EFI stub: ERROR: FIRMWARE BUG: kernel image not aligned on 64k boundary` Until the issue gets resolved, it is highly recommended to run `sudo apt-mark hold linux-image-$(uname -r)` to avoid upgrading the kernel. See issue 712 Signed-off-by: Akihiro Suda <[email protected]>
1 parent c229fac commit 00e9d66

12 files changed

+199
-39
lines changed

examples/buildkit.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,19 @@ message: |
1111
buildctl debug workers
1212
-------
1313
images:
14-
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-amd64.img"
14+
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
15+
# ⚠️ release-20220309 is known to be broken on aarch64: https://github.com/lima-vm/lima/issues/712
16+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release-20220201/ubuntu-21.10-server-cloudimg-amd64.img"
1517
arch: "x86_64"
16-
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-arm64.img"
18+
digest: "sha256:73fe1785c60edeb506f191affff0440abcc2de02420bb70865d51d0ff9b28223"
19+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release-20220201/ubuntu-21.10-server-cloudimg-arm64.img"
20+
arch: "aarch64"
21+
digest: "sha256:1b5b3fe616e1eea4176049d434a360344a7d471f799e151190f21b0a27f0b424"
22+
# Fallback to the latest release image.
23+
# Hint: run `limactl prune` to invalidate the cache
24+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release/ubuntu-21.10-server-cloudimg-amd64.img"
25+
arch: "x86_64"
26+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release/ubuntu-21.10-server-cloudimg-arm64.img"
1727
arch: "aarch64"
1828

1929
containerd:

examples/default.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,19 @@ arch: null
1313
# 🟢 Builtin default: null (must be specified)
1414
# 🔵 This file: Ubuntu 21.10 Impish Indri images
1515
images:
16-
# Try to use a local image first.
17-
- location: "~/Downloads/impish-server-cloudimg-amd64.img"
16+
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
17+
# ⚠️ release-20220309 is known to be broken on aarch64: https://github.com/lima-vm/lima/issues/712
18+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release-20220201/ubuntu-21.10-server-cloudimg-amd64.img"
1819
arch: "x86_64"
19-
- location: "~/Downloads/impish-server-cloudimg-arm64.img"
20+
digest: "sha256:73fe1785c60edeb506f191affff0440abcc2de02420bb70865d51d0ff9b28223"
21+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release-20220201/ubuntu-21.10-server-cloudimg-arm64.img"
2022
arch: "aarch64"
21-
22-
# Download the file from the internet when the local file is missing.
23-
# Hint: run `limactl prune` to invalidate the "current" cache
24-
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-amd64.img"
23+
digest: "sha256:1b5b3fe616e1eea4176049d434a360344a7d471f799e151190f21b0a27f0b424"
24+
# Fallback to the latest release image.
25+
# Hint: run `limactl prune` to invalidate the cache
26+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release/ubuntu-21.10-server-cloudimg-amd64.img"
2527
arch: "x86_64"
26-
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-arm64.img"
28+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release/ubuntu-21.10-server-cloudimg-arm64.img"
2729
arch: "aarch64"
2830

2931
# CPUs: if you see performance issues, try limiting cpus to 1.

examples/docker.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,21 @@
88

99
# This example requires Lima v0.8.0 or later
1010
images:
11-
# Hint: run `limactl prune` to invalidate the "current" cache
12-
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-amd64.img"
11+
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
12+
# ⚠️ release-20220309 is known to be broken on aarch64: https://github.com/lima-vm/lima/issues/712
13+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release-20220201/ubuntu-21.10-server-cloudimg-amd64.img"
1314
arch: "x86_64"
14-
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-arm64.img"
15+
digest: "sha256:73fe1785c60edeb506f191affff0440abcc2de02420bb70865d51d0ff9b28223"
16+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release-20220201/ubuntu-21.10-server-cloudimg-arm64.img"
1517
arch: "aarch64"
18+
digest: "sha256:1b5b3fe616e1eea4176049d434a360344a7d471f799e151190f21b0a27f0b424"
19+
# Fallback to the latest release image.
20+
# Hint: run `limactl prune` to invalidate the cache
21+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release/ubuntu-21.10-server-cloudimg-amd64.img"
22+
arch: "x86_64"
23+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release/ubuntu-21.10-server-cloudimg-arm64.img"
24+
arch: "aarch64"
25+
1626
mounts:
1727
- location: "~"
1828
- location: "/tmp/lima"

examples/faasd.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,21 @@
1717
#
1818
# This example requires Lima v0.7.0 or later.
1919

20-
images:
2120
# Image is set to focal (20.04 LTS) for long-term stability
22-
- location: "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img"
21+
images:
22+
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
23+
# ⚠️ release-20220308 is known to be broken on aarch64: https://github.com/lima-vm/lima/issues/712
24+
- location: "https://cloud-images.ubuntu.com/releases/20.04/release-20220302/ubuntu-20.04-server-cloudimg-amd64.img"
25+
arch: "x86_64"
26+
digest: "sha256:243157ea0390890d6e60ce5e08e0249b16e23b6b313b63aed50f39f92b020afe"
27+
- location: "https://cloud-images.ubuntu.com/releases/20.04/release-20220302/ubuntu-20.04-server-cloudimg-arm64.img"
28+
arch: "aarch64"
29+
digest: "sha256:fb2b4efdbf0011bd2a9fd49e9d31efdd252966c889f07b5d246351ec5734a329"
30+
# Fallback to the latest release image.
31+
# Hint: run `limactl prune` to invalidate the cache
32+
- location: "https://cloud-images.ubuntu.com/releases/20.04/release/ubuntu-20.04-server-cloudimg-amd64.img"
2333
arch: "x86_64"
24-
- location: "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-arm64.img"
34+
- location: "https://cloud-images.ubuntu.com/releases/20.04/release/ubuntu-20.04-server-cloudimg-arm64.img"
2535
arch: "aarch64"
2636

2737
# Mounts are disabled in this example, but can be enabled optionally.

examples/k3s.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,19 @@
1414
# This example requires Lima v0.7.0 or later.
1515

1616
images:
17-
# Hint: run `limactl prune` to invalidate the "current" cache
18-
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-amd64.img"
17+
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
18+
# ⚠️ release-20220309 is known to be broken on aarch64: https://github.com/lima-vm/lima/issues/712
19+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release-20220201/ubuntu-21.10-server-cloudimg-amd64.img"
1920
arch: "x86_64"
20-
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-arm64.img"
21+
digest: "sha256:73fe1785c60edeb506f191affff0440abcc2de02420bb70865d51d0ff9b28223"
22+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release-20220201/ubuntu-21.10-server-cloudimg-arm64.img"
23+
arch: "aarch64"
24+
digest: "sha256:1b5b3fe616e1eea4176049d434a360344a7d471f799e151190f21b0a27f0b424"
25+
# Fallback to the latest release image.
26+
# Hint: run `limactl prune` to invalidate the cache
27+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release/ubuntu-21.10-server-cloudimg-amd64.img"
28+
arch: "x86_64"
29+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release/ubuntu-21.10-server-cloudimg-arm64.img"
2130
arch: "aarch64"
2231

2332
# Mounts are disabled in this example, but can be enabled optionally.

examples/k8s.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,24 @@
1212
# lima-k8s Ready control-plane,master 44s v1.22.3
1313

1414
# This example requires Lima v0.7.0 or later.
15-
images:
15+
1616
# Image is set to focal (20.04 LTS) for long-term stability
17-
# Hint: run `limactl prune` to invalidate the "current" cache
18-
- location: "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img"
17+
images:
18+
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
19+
# ⚠️ release-20220308 is known to be broken on aarch64: https://github.com/lima-vm/lima/issues/712
20+
- location: "https://cloud-images.ubuntu.com/releases/20.04/release-20220302/ubuntu-20.04-server-cloudimg-amd64.img"
1921
arch: "x86_64"
20-
- location: "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-arm64.img"
22+
digest: "sha256:243157ea0390890d6e60ce5e08e0249b16e23b6b313b63aed50f39f92b020afe"
23+
- location: "https://cloud-images.ubuntu.com/releases/20.04/release-20220302/ubuntu-20.04-server-cloudimg-arm64.img"
2124
arch: "aarch64"
25+
digest: "sha256:fb2b4efdbf0011bd2a9fd49e9d31efdd252966c889f07b5d246351ec5734a329"
26+
# Fallback to the latest release image.
27+
# Hint: run `limactl prune` to invalidate the cache
28+
- location: "https://cloud-images.ubuntu.com/releases/20.04/release/ubuntu-20.04-server-cloudimg-amd64.img"
29+
arch: "x86_64"
30+
- location: "https://cloud-images.ubuntu.com/releases/20.04/release/ubuntu-20.04-server-cloudimg-arm64.img"
31+
arch: "aarch64"
32+
2233
# Mounts are disabled in this example, but can be enabled optionally.
2334
mounts: []
2435
containerd:

examples/nomad.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,24 @@
88
# https://github.com/Roblox/nomad-driver-containerd/tree/master/example
99

1010
# This example requires Lima v0.7.0 or later.
11-
images:
11+
1212
# Image is set to focal (20.04 LTS) for long-term stability
13-
# Hint: run `limactl prune` to invalidate the "current" cache
14-
- location: "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img"
13+
images:
14+
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
15+
# ⚠️ release-20220308 is known to be broken on aarch64: https://github.com/lima-vm/lima/issues/712
16+
- location: "https://cloud-images.ubuntu.com/releases/20.04/release-20220302/ubuntu-20.04-server-cloudimg-amd64.img"
1517
arch: "x86_64"
16-
- location: "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-arm64.img"
18+
digest: "sha256:243157ea0390890d6e60ce5e08e0249b16e23b6b313b63aed50f39f92b020afe"
19+
- location: "https://cloud-images.ubuntu.com/releases/20.04/release-20220302/ubuntu-20.04-server-cloudimg-arm64.img"
1720
arch: "aarch64"
21+
digest: "sha256:fb2b4efdbf0011bd2a9fd49e9d31efdd252966c889f07b5d246351ec5734a329"
22+
# Fallback to the latest release image.
23+
# Hint: run `limactl prune` to invalidate the cache
24+
- location: "https://cloud-images.ubuntu.com/releases/20.04/release/ubuntu-20.04-server-cloudimg-amd64.img"
25+
arch: "x86_64"
26+
- location: "https://cloud-images.ubuntu.com/releases/20.04/release/ubuntu-20.04-server-cloudimg-arm64.img"
27+
arch: "aarch64"
28+
1829
# Mounts are disabled in this example, but can be enabled optionally.
1930
mounts: []
2031
containerd:

examples/podman.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,21 @@
1212

1313
# This example requires Lima v0.8.0 or later
1414
images:
15-
# Hint: run `limactl prune` to invalidate the "current" cache
16-
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-amd64.img"
15+
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
16+
# ⚠️ release-20220309 is known to be broken on aarch64: https://github.com/lima-vm/lima/issues/712
17+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release-20220201/ubuntu-21.10-server-cloudimg-amd64.img"
1718
arch: "x86_64"
18-
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-arm64.img"
19+
digest: "sha256:73fe1785c60edeb506f191affff0440abcc2de02420bb70865d51d0ff9b28223"
20+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release-20220201/ubuntu-21.10-server-cloudimg-arm64.img"
1921
arch: "aarch64"
22+
digest: "sha256:1b5b3fe616e1eea4176049d434a360344a7d471f799e151190f21b0a27f0b424"
23+
# Fallback to the latest release image.
24+
# Hint: run `limactl prune` to invalidate the cache
25+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release/ubuntu-21.10-server-cloudimg-amd64.img"
26+
arch: "x86_64"
27+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release/ubuntu-21.10-server-cloudimg-arm64.img"
28+
arch: "aarch64"
29+
2030
mounts:
2131
- location: "~"
2232
- location: "/tmp/lima"

examples/ubuntu-lts.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,21 @@
22

33
# This example requires Lima v0.7.0 or later.
44
images:
5-
# Hint: run `limactl prune` to invalidate the "current" cache
6-
- location: "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img"
5+
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
6+
# ⚠️ release-20220308 is known to be broken on aarch64: https://github.com/lima-vm/lima/issues/712
7+
- location: "https://cloud-images.ubuntu.com/releases/20.04/release-20220302/ubuntu-20.04-server-cloudimg-amd64.img"
78
arch: "x86_64"
8-
- location: "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-arm64.img"
9+
digest: "sha256:243157ea0390890d6e60ce5e08e0249b16e23b6b313b63aed50f39f92b020afe"
10+
- location: "https://cloud-images.ubuntu.com/releases/20.04/release-20220302/ubuntu-20.04-server-cloudimg-arm64.img"
911
arch: "aarch64"
12+
digest: "sha256:fb2b4efdbf0011bd2a9fd49e9d31efdd252966c889f07b5d246351ec5734a329"
13+
# Fallback to the latest release image.
14+
# Hint: run `limactl prune` to invalidate the cache
15+
- location: "https://cloud-images.ubuntu.com/releases/20.04/release/ubuntu-20.04-server-cloudimg-amd64.img"
16+
arch: "x86_64"
17+
- location: "https://cloud-images.ubuntu.com/releases/20.04/release/ubuntu-20.04-server-cloudimg-arm64.img"
18+
arch: "aarch64"
19+
1020
mounts:
1121
- location: "~"
1222
- location: "/tmp/lima"

examples/ubuntu.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
# This example requires Lima v0.7.0 or later.
22
images:
3-
# Hint: run `limactl prune` to invalidate the "current" cache
4-
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-amd64.img"
3+
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
4+
# ⚠️ release-20220309 is known to be broken on aarch64: https://github.com/lima-vm/lima/issues/712
5+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release-20220201/ubuntu-21.10-server-cloudimg-amd64.img"
56
arch: "x86_64"
6-
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-arm64.img"
7+
digest: "sha256:73fe1785c60edeb506f191affff0440abcc2de02420bb70865d51d0ff9b28223"
8+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release-20220201/ubuntu-21.10-server-cloudimg-arm64.img"
79
arch: "aarch64"
10+
digest: "sha256:1b5b3fe616e1eea4176049d434a360344a7d471f799e151190f21b0a27f0b424"
11+
# Fallback to the latest release image.
12+
# Hint: run `limactl prune` to invalidate the cache
13+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release/ubuntu-21.10-server-cloudimg-amd64.img"
14+
arch: "x86_64"
15+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release/ubuntu-21.10-server-cloudimg-arm64.img"
16+
arch: "aarch64"
17+
818
mounts:
919
- location: "~"
1020
- location: "/tmp/lima"

examples/vmnet.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,20 @@
22
# This example requires Lima v0.7.0 or later.
33
# Older versions of Lima were using a different syntax for supporting vmnet.framework.
44
images:
5-
# Hint: run `limactl prune` to invalidate the "current" cache
6-
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-amd64.img"
5+
# ⚠️ release-20220309 is known to be broken on aarch64: https://github.com/lima-vm/lima/issues/712
6+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release-20220201/ubuntu-21.10-server-cloudimg-amd64.img"
77
arch: "x86_64"
8-
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-arm64.img"
8+
digest: "sha256:73fe1785c60edeb506f191affff0440abcc2de02420bb70865d51d0ff9b28223"
9+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release-20220201/ubuntu-21.10-server-cloudimg-arm64.img"
910
arch: "aarch64"
11+
digest: "sha256:1b5b3fe616e1eea4176049d434a360344a7d471f799e151190f21b0a27f0b424"
12+
# Fallback to the latest release image.
13+
# Hint: run `limactl prune` to invalidate the cache
14+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release/ubuntu-21.10-server-cloudimg-amd64.img"
15+
arch: "x86_64"
16+
- location: "https://cloud-images.ubuntu.com/releases/21.10/release/ubuntu-21.10-server-cloudimg-arm64.img"
17+
arch: "aarch64"
18+
1019
mounts:
1120
- location: "~"
1221
- location: "/tmp/lima"

pkg/start/start.go

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import (
99
"os"
1010
"os/exec"
1111
"path/filepath"
12+
"runtime"
13+
"strings"
1214
"text/template"
1315
"time"
1416

@@ -148,6 +150,8 @@ func Start(ctx context.Context, inst *store.Instance) error {
148150
return err
149151
}
150152

153+
showUbuntuMarch2022Warning(inst) // remove when Ubuntu fixes https://github.com/lima-vm/lima/issues/712
154+
151155
watchErrCh := make(chan error)
152156
go func() {
153157
watchErrCh <- watchHostAgentEvents(ctx, inst, haStdoutPath, haStderrPath, begin)
@@ -271,3 +275,57 @@ func ShowMessage(inst *store.Instance) error {
271275
}
272276
return nil
273277
}
278+
279+
// showUbuntuMarch2022Warning shows warning for https://github.com/lima-vm/lima/issues/712
280+
func showUbuntuMarch2022Warning(inst *store.Instance) {
281+
if unlikelyUbuntu(inst.Name) {
282+
return
283+
}
284+
display := "sdl"
285+
if runtime.GOOS == "darwin" {
286+
display = "cocoa"
287+
}
288+
s := fmt.Sprintf(`
289+
============ ⚠️ March 2022 update of Ubuntu does not work on ARM ⚠️ ============
290+
Ubuntu kernel 5.13.0-35.40 (5.4.0-103.117 for 20.04 LTS) released in March 2022
291+
is not bootable on ARM hosts.
292+
(EFI stub: ERROR: FIRMWARE BUG: kernel image not aligned on 64k boundary
293+
294+
Until the issue gets resolved, it is HIGHLY RECOMMENDED to run the following
295+
command in the Ubuntu shell (NOT the host shell) to avoid upgrading the kernel:
296+
297+
------------------------------------------------------------
298+
sudo apt-mark hold linux-image-$(uname -r)
299+
------------------------------------------------------------
300+
301+
If your kernel was already upgraded and the VM does not boot, try running Lima
302+
with the following environment variable to show the QEMU video display:
303+
304+
------------------------------------------------------------
305+
export QEMU_SYSTEM_AARCH64="qemu-system-aarch64 -display %s"
306+
------------------------------------------------------------
307+
308+
After the display is shown, press the Esc key several times to show the GRUB
309+
prompt for choosing an older kernel.
310+
311+
To receive updates about this issue, subscribe to the following issue tickets:
312+
- https://github.com/lima-vm/lima/issues/712
313+
- https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1947046
314+
315+
If you are not using Ubuntu, you can ignore this warning message.
316+
============ ⚠️ March 2022 update of Ubuntu does not work on ARM ⚠️ ============
317+
`, display)
318+
logrus.Warn(s)
319+
}
320+
321+
func unlikelyUbuntu(instName string) bool {
322+
dict := []string{
323+
"alma", "alpine", "archlinux", "centos", "debian", "fedora", "red", "rhel", "suse", "oracle", "rocky",
324+
}
325+
for _, f := range dict {
326+
if strings.Contains(instName, f) {
327+
return true
328+
}
329+
}
330+
return false
331+
}

0 commit comments

Comments
 (0)