exit 1
}
+beginswith() {
+ [ "$1" != "${1#$2}" ]
+}
+
# Function to setup subhost name and log file
subhost_name() {
CONFIG="$1"
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"
}