+ if is_mounted $TARGET ; then
+ mount -oremount $TARGET
+ else
+ if [ -f "$IMAGE" ] ; then
+ # The subhost has an image file with /root and /work in it
+ is_mounted $MOUNT || mount $IMAGE $MOUNT || exit 1
+ UPPER=$MOUNT/root
+ WORK=$MOUNT/work
+ fi
+ if [ -z "$OSROOT" ] ; then
+ # No overlay
+ mount --rbind $UPPER $TARGET
+ else
+ # overlay of $UPPER (+$WORK) over $OSROOT onto $TARGET
+ mount -t overlay $NAME \
+ -olowerdir=$OSROOT,upperdir=$UPPER,workdir=$WORK \
+ $TARGET
+ fi