Skip to content

Commit 2be9e90

Browse files
committed
Add ignition nerdctl-full installer
This doesn't actually start any services, but waiting for the nerdctl user to run `containerd-rootless-setuptool.sh install`. Alternatively to start up the installed system containerd.service, replacing the one from docker, and run `sudo nerdctl` with it. Signed-off-by: Anders F Björklund <[email protected]>
1 parent 7189d3d commit 2be9e90

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

examples/experimental/fedora-coreos.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,3 @@ images:
1313
mounts:
1414
- location: "/tmp/lima"
1515
writable: true
16-
17-
# The built-in containerd installer does not support CoreOS currently.
18-
containerd:
19-
system: false
20-
user: false

pkg/cidata/cidata.TEMPLATE.d/ignition.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@ systemd:
6161
6262
[Install]
6363
RequiredBy=multi-user.target
64+
{{- if or .Containerd.User .Containerd.System }}
65+
- name: lima-install-containerd.service
66+
enabled: true
67+
contents: |
68+
[Service]
69+
Type=oneshot
70+
ExecStart=/bin/sh -c "/usr/bin/tar Cxzf /usr/local /mnt/lima-cidata/nerdctl-full.tgz"
71+
72+
[Install]
73+
RequiredBy=multi-user.target
74+
{{- end}}
6475
- name: lima-install-guestagent.service
6576
enabled: true
6677
contents: |

0 commit comments

Comments
 (0)