Moed Katan1: 6
אֵין חוֹפְרִין כּוּכִין וּקְבָרוֹת בַּמּוֹעֵד, אֲבָל מְחַנְּכִים אֶת הַכּוּכִין בַּמּוֹעֵד. וְעוֹשִׂין נִבְרֶכֶת בַּמּוֹעֵד, וְאָרוֹן עִם הַמֵּת בֶּחָצֵר;  רַבִּי יְהוּדָה אוֹסֵר, אֶלָּא אִם כֵּן יֵשׁ עִמּוֹ נְסָרִים.
We may not hew burial niches nor [build] tombs during [Chol] HaMoed; but we may adapt burial niches during [Chol] HaMoed; dig wash ponds during [Chol] HaMoed; and [construct] a coffin in the courtyard with the deceased.  R' Yehudah prohibits [the latter], unless the boards are at hand.