Dave Higgins wrote: > ... the question at hand is how do I add a file to a CD and get the > file to install at install time? It shouldn't be as mysterious as > it seems to be, i.e. I should be able to edit a file and say add > this file.
A little more information would be helpful. Do you just want to add a file to someplace such as /usr/local/bin/somescript? Or is it an additional package to be installed such as 'less'? Or do you want additional driver firmware (e.g. nonfree firmware) to be automatically available? You want to have a CD that can install and have the system end up with the extra stuff? As with many things there are many ways to do something. Here is something similar to what I am doing. Add a preseed.cfg script to your CD. In the preseed you can add additional packages to be installed. Ensure those packages are installable from the CD. Additionally the preseed file can specify a late_command script to be run at the end of the installation. Since it is a script it can do many things there such as planting unpackaged files. The topic of preseed.cfg files is a confusing one. It isn't that there isn't documentation. The problem is that there is so much documentation that it makes your head spin trying to read it all. Here is a start. http://wiki.debian.org/DebianInstaller/Preseed And if you search around for specific things you will find a lot of documentation on the topic. However I think it isn't easy to get going on it and there are many loose end leaves of documentation pages scattered here and there. Asking questions may be necessary. The basic idea would be to take the cd or dvd installation media that you wish to install and unpack it into a live directory. Then add in any extra packages to the media that you need. Since the disk is already full if you add something you may have to remove something else from it to keep the size small enough to burn back to cd/ddv media. This makes booting from a USB storage device much easier since it has more flexibility. Then add a preseed.cfg file to the top level directory that contains a "d-i pkgsel/include" line (it will make sense when you do it) listing the extra packages you wish installed. Along with other customizations you might desire. Or add in a "d-i preseed/late_command" customization to run a script. Use the script to perform your modifications. I am intentionally just giving the ideas because the details for any of the above would be very long and it doesn't make sense to spew them out unless that is really the direction you are looking to go. If you say a few more words about what you are trying to accomplish and if something like the above seems reasonable then I would be happy to write up some recipies on how to do it. I might not know all of the tricks but with help from others on the list it should work out. :-) Bob
signature.asc
Description: Digital signature