Skip to content

Commit

Permalink
Replace symlink with bind-mount for default ceph directories
Browse files Browse the repository at this point in the history
We cannot assume that these directories will be empty which causes
the snap layotu handling to fail. Changing to bind works around
this issue.

Closes #122

Signed-off-by: Chris MacNaughton <[email protected]>
  • Loading branch information
ChrisMacNaughton committed Apr 16, 2023
1 parent ec95dcb commit 318188c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ layout:
/usr/lib/$CRAFT_ARCH_TRIPLET/rados-classes:
symlink: $SNAP/lib/$CRAFT_ARCH_TRIPLET/rados-classes
/etc/ceph:
symlink: $SNAP_DATA/conf
bind: $SNAP_DATA/conf
/usr/share/ceph:
symlink: $SNAP/share/ceph
bind: $SNAP/share/ceph
/var/lib/ceph:
symlink: $SNAP_COMMON/data
bind: $SNAP_COMMON/data
/var/log/ceph:
symlink: $SNAP_COMMON/logs
bind: $SNAP_COMMON/logs

apps:
# Service
Expand Down

0 comments on commit 318188c

Please sign in to comment.