Use this procedure to add user specified content to AVDF template files. AVDF allows specific content to persist on the appliance through various procedures such as upgrade and regular system configuration. This is handled by the user interface of the appliance.
Every template configuration file on the appliance allows to add user defined content. An additional file is available that contains such content. Within this file an additional output data file must be added. Any user defined content is added to the end of the final output file.
Not all template files are written regularly. In some cases files are only updated on upgrade, while some are updated frequently like networking configuration.
- Create a root-owned directory where all the files can be stored.
The directory must be owned by root user and must have write access.
The following commands can be executed to create the directory named include:
chown root:root /usr/local/dbfw/templates/include
chmod 755 /usr/local/dbfw/templates/include
- Create a new directory to have data automatically inserted into the output of a template file. The name of this new directory can be prefixed with after-.
- The list of files that have user data appended are stored at
- To add further host names to
/etc/hosts, add the file named after-template-hosts to the directory
The file after-template-hosts must be read-only and owned by root. It may be world readable also.
- Execute the following commands to set the required permission after creating the after-template-hosts file:
chmod 444 /usr/local/dbfw/templates/include/after-template-hosts
chown root:root /usr/local/dbfw/templates/include/after-template-hosts
- Modify the file to include new user data. This is used when the template file and the data is appended to the generated file. The newly appended data is found in the end of the generated file.
- In most cases it is necessary to restart or re-initialize the affected component before the changes are completely applied. Refer to the Oracle Linux documentation for more information about the components and files modified.