mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00

remove loopback_file reference, not existing anymore filesystem not available anymore, and depends on volume layout so remove the execute commands after the user_packages install, else user won't be able to call or update installed packages
22 lines
715 B
Markdown
22 lines
715 B
Markdown
# Image script plugin
|
|
|
|
This plugin gives the possibility to the user to execute commands.
|
|
|
|
Plugin is defined in the manifest file, plugin section with:
|
|
|
|
"image_commands": {
|
|
"commands": [ [ "touch", "/var/www/index.html" ]],
|
|
}
|
|
|
|
The *commands* element is an array of commands. Each command is an array describing the executable and its arguments.
|
|
|
|
Command is executed in current context. It is possible to use variables to access the image or execute chroot commands in the image.
|
|
|
|
Available variables are:
|
|
{root} : image mount point (to copy files for example or chroot commands)
|
|
|
|
Example:
|
|
|
|
[[ "touch", "{root}/var/www/hello" ],
|
|
[ "/usr/sbin/chroot", "{root}", "touch", "/var/www/hello"]]
|
|
|