Forum archive
Creating a new application with TKLDEV with modified files inside the ISO image
Hello I want to create an application with tkldev where I want to include postgresql, samba and a specific application in net core, or in PHP if it is not possible to include packages for net core, I want to configure some parameters of postgresql and Samba so they are already included on the Live CD, is it possible to do this with TklDev ? , I saw a way to install fileserver.mk and pgsql.mk, but I don't understand how to make some files of said applications are configured with values already set and include them in the Live Cd, thanks for any help.
Yes it's possible...
Packages that you want to install go in plan/main. And/or you can leverage any of the plans in common by including them at the top of your custom app code plan/main. E.g. to include the samba plan - which will install all the packages (and their hard dependencies) noted in the common samba plan - add this line to your plan:
If you wish to add configuration, that will need to be provided either via an overlay config file (i.e. a copy of the preconfigured config file) or script it in your custom conf script (e.g. using sed to modify the file). Overlay files goe in the overlay directory, relative to /. E.g. if you want to include /etc/some-app/config then create the base path and cp the file into place. I.e.:
I hope that helps?!
There is a fair bit of TKLDev documentation that should give a fair bit more detail.