Skip to content

Commit

Permalink
fix: persists network user data
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Berning <[email protected]>
  • Loading branch information
sam-berning committed Feb 10, 2023
1 parent 7aaa381 commit 145c7b9
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions finch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,18 @@ provision:
script: |
#!/bin/bash
sudo chown $USER /mnt/lima-finch
mkdir -p /mnt/lima-finch/containerd
mkdir -p /mnt/lima-finch/nerdctl
mkdir -p ~/.local/share/nerdctl
# https://github.com/containerd/nerdctl/blob/main/extras/rootless/containerd-rootless.sh#L146
mkdir -p /mnt/lima-finch/containerd ~/.local/share/containerd
sudo mount --bind /mnt/lima-finch/containerd ~/.local/share/containerd
# https://github.com/containerd/nerdctl/blob/main/docs/dir.md#dataroot
mkdir -p /mnt/lima-finch/nerdctl ~/.local/share/nerdctl
sudo mount --bind /mnt/lima-finch/nerdctl ~/.local/share/nerdctl
# https://github.com/containerd/nerdctl/blob/main/docs/dir.md#netconfpath
mkdir -p /mnt/lima-finch/cni-config ~/.config/cni
sudo mount --bind /mnt/lima-finch/cni-config ~/.config/cni
# https://github.com/containerd/nerdctl/blob/main/extras/rootless/containerd-rootless.sh#L150
mkdir -p /mnt/lima-finch/cni-local ~/.local/share/cni
sudo mount --bind /mnt/lima-finch/cni-local ~/.local/share/cni
systemctl --user restart containerd.service
# Probe scripts to check readiness.
Expand Down

0 comments on commit 145c7b9

Please sign in to comment.