#!/usr/bin/env sh

suffix=$1
mount_point=$2


#/usr/libexec/apptainer/bin/fuse-overlayfs \
fuse-overlayfs \
    -o squash_to_uid=$(id -u) \
    -o squash_to_gid=$(id -g) \
    -o lowerdir=/overlayfs/lower-${suffix} \
    -o upperdir=/overlayfs/upper-${suffix} \
    -o workdir=/overlayfs/wd-${suffix} \
    $mount_point
