Skip to content

Commit

Permalink
fix!: persists nerdctl user data (runfinch#182)
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Berning <[email protected]>

Issue #, if available: runfinch#180

*Description of changes:*

Changes format of persistent disk to support saving nerdctl user data

*Testing done:*

```
$ finch run --name test-container -v ~/scratch:/scratch alpine ls /scratch
$ finch vm stop
$ finch vm remove
$ finch vm init
$ finch start --attach test-container
```

- [x] I've reviewed the guidance in CONTRIBUTING.md


#### License Acceptance

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.

Signed-off-by: Sam Berning <[email protected]>
  • Loading branch information
sam-berning authored Jan 24, 2023
1 parent a34c5c7 commit 59f372c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion finch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ provision:
script: |
#!/bin/bash
sudo chown $USER /mnt/lima-finch
sudo mount --bind /mnt/lima-finch ~/.local/share/containerd
mkdir -p /mnt/lima-finch/containerd
mkdir -p /mnt/lima-finch/nerdctl
mkdir -p ~/.local/share/nerdctl
sudo mount --bind /mnt/lima-finch/containerd ~/.local/share/containerd
sudo mount --bind /mnt/lima-finch/nerdctl ~/.local/share/nerdctl
systemctl --user restart containerd.service
# Probe scripts to check readiness.
Expand Down

0 comments on commit 59f372c

Please sign in to comment.