files
The files module can be used to copy directories from files/ to
any location in your image at build-time, as long as the location exists at
build-time (e.g. you can’t put files in /home/<username>/, because users
haven’t been created yet prior to first boot).
Example configuration
Section titled “Example configuration”modules: - type: files files: - source: system # copies `files/system/*` (* means everything inside it) into your image's root folder `/` destination: / - source: my-image/usr # copies `files/my-image/usr/*` to `/usr/` inside the image destination: /usrConfiguration options
Section titled “Configuration options”files: (required enum)
Section titled “files: (required enum)”List of files / folders to copy.
Possible values: string: string, { source: string, destination: string }