diff --git a/examples/fedora-coreos.yaml b/examples/fedora-coreos.yaml index 0ff70b28945d..3f1c5261b673 100644 --- a/examples/fedora-coreos.yaml +++ b/examples/fedora-coreos.yaml @@ -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 diff --git a/pkg/cidata/cidata.TEMPLATE.d/ignition.yaml b/pkg/cidata/cidata.TEMPLATE.d/ignition.yaml index c30ab0b9adc0..94c89732fca8 100644 --- a/pkg/cidata/cidata.TEMPLATE.d/ignition.yaml +++ b/pkg/cidata/cidata.TEMPLATE.d/ignition.yaml @@ -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: |