Skip to content

Commit 1ac0d59

Browse files
committed
add unmount to finish script on service mount
1 parent fd56500 commit 1ac0d59

File tree

1 file changed

+7
-0
lines changed
  • root/etc/s6-overlay/s6-rc.d/mount

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/with-contenv bash
2+
3+
unmount() { if findmnt "$1" | grep -q fuse; then fusermount -uz "$1" ; fi }
4+
5+
# unmount fuse
6+
unmount /data
7+
[[ -n "${POOLING_FS:-}" ]] && unmount /cloud

0 commit comments

Comments
 (0)