There are different pre-built images available for Raspberry Pis, both in desktop and server variants, etc.
In my situation, I want to build a much more slimmer image with some configurations made long before the first boot and with fewer preinstalled packages as I won't use them at all. Modifying pre-built images isn't good as it isn't a clean approach.
I found same question there, but it points to manifest files, which just contain names and versions of installed packages. That info, of course, isn't enough to create functional image from scratch.
How are the pre-built Ubuntu images for Raspberry Pi actually made?