3 # fstab-compatible mount script for posix-overlay fs
5 # /sbin/mount.posixovlfs /mnt/vol/lower /mnt/vol/upper -o rw,default
25 echo "unknown parameter: $1" >&2
32 if [[ $sourcestring =~ posixovl
:(.
+) ]]
34 sourcedir
=${BASH_REMATCH[1]}
36 sourcedir
=$sourcestring
46 ro
) echo "readonly is not supported" >&2
52 *) fuse_options
="$fuse_options${fuse_options:+,}$opt"
58 if [ -z "$fuse_options" ]
60 mount.posixovl
"${opts[@]}" -S "$sourcedir" "$targetdir"
62 mount.posixovl
"${opts[@]}" -S "$sourcedir" "$targetdir" -- "$fuse_options"