Skip to content

Commit

Permalink
Add ignition nerdctl-full installer
Browse files Browse the repository at this point in the history
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 <anders.f.bjorklund@gmail.com>
  • Loading branch information
afbjorklund committed Oct 5, 2023
1 parent 7189d3d commit 2be9e90
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 0 additions & 5 deletions examples/experimental/fedora-coreos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,3 @@ images:
mounts:
- location: "/tmp/lima"
writable: true

# The built-in containerd installer does not support CoreOS currently.
containerd:
system: false
user: false
11 changes: 11 additions & 0 deletions pkg/cidata/cidata.TEMPLATE.d/ignition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ systemd:
[Install]
RequiredBy=multi-user.target
{{- if or .Containerd.User .Containerd.System }}
- name: lima-install-containerd.service
enabled: true
contents: |
[Service]
Type=oneshot
ExecStart=/bin/sh -c "/usr/bin/tar Cxzf /usr/local /mnt/lima-cidata/nerdctl-full.tgz"
[Install]
RequiredBy=multi-user.target
{{- end}}
- name: lima-install-guestagent.service
enabled: true
contents: |
Expand Down

0 comments on commit 2be9e90

Please sign in to comment.