Overlay Action
The overlay
action allows to overlay a file structure into the root file
system at the end of the installation. The corresponding command that takes care
of this is appended to <profile>.postinst
. Corresponding archives that contain
the overlays are copied to the extra
folder and are registered in
<profile>.extra
. By default the overlay will be copied by root, but it's also
possible to have a user do this.
Usage
Click on the to learn more about the action's options.
Overlay Action
{% set username=username or "user" -%}
actions:
- action: overlay
description: Bash settings for {{username}} #(1)!
user: {{username}} #(2)!
source: overlays/bash-settings #(3)!
destination: /home/{{username}}/ #(4)!
- [Optional] Description, for documentation purposes
- [Optional] User that performs the overlay actions. If omitted root is used.
- [Required] Relative link to overlay file structure
command
keyword. - [Optional] Destination where the overlay file structure is copied to. If
destination
anduser
are omitted,/
is used. Ifdestination
is omitted butuser
is provided,/home/{user}
is used.
Implementation
OverlayAction
Bases: Action
Overlay action