mount --bind $UPPER $LOWER
fi
+ grep ^SHARE= "$CONFIG" | while read A ; do
+ B="$(echo ${A#SHARE=})"
+ D="$(realpath "$LOWER$B")"
+ [ "$D" = "$LOWER" ] && continue
+ if [ -d "$D" ] ; then
+ echo bind mount $D onto $LIVE$D
+ mkdir -p $LIVE$D
+ mount --bind $D $LIVE$D
+ fi
+ done
+
env CONFIG="$CONFIG" $POSTMOUNT "LIVE" "$UPPER"
}
has to be a writable directory on the same mount device as the UPPER
directory.
+*SHARE*::
+
+This variable nominates a pathname under $LOWER to bind-mount onto the
+same pathname under $LIVE so as to share that directory tree into the
+overlay. The SHARE variable is a special configuration variable in
+that the value does not allow exclamation mark evaluation, and that it
+may occur many times for declaring multiple shared subdirectories.
+
Networking
----------