I need a very small custrom made distribution that I can use to boot my system (add to boot options of an Ubuntu CD) that will mount the filesystem on disk and make some changes to it (install packages, copy files etc.)
I can modify the existing debian-installer image on ubuntu ISO by extracting, modifiying it and making a new archive, but I believe it is not the way. Since it will sit on the normal Ubuntu ISO, it needs to be very small. So options like remastersys are not fit for me. I have been looking into Damn Small Linux, but I also modify the normal ubuntu installation and I have no idea to make the both available to boot in the menu.
What is the common way to accomplish this task?