Modify preseed file to automatically install packages in / pool / extra

I want to modify the preseed file of an unpacked (using UCK) GNU / Linux ISO, and then repackaging it (using UCK).

I am trying to modify the preseed file so that all .deb packages that I copied to the pool/extras folder are automatically installed during OS installation. To do this, I will need to add something to the preseed file. I could not understand what it is. Can someone help me?

+5
source share
1 answer

Why don't you create a meta package that depends on all the packages you want to install, and just configure preseed to install it.

equivs was designed for this kind of thing, although creating a meta package from scratch with standard packaging tools is not very difficult, either.

To instruct the installer about installing packages, you can include the line

 di pkgsel/include string package1 package2 

in the preseed file. If you just want to install all *.deb files from a directory (not a complete Apt repository with Packages.gz , etc.), Maybe

 di preseed/late_command string in-target dpkg -i /pool/extras/*.deb 

but I would prefer a complete repo; basically it just runs through dpkg-scanpackages .

+7
source

Source: https://habr.com/ru/post/1488960/


All Articles