From 1ee5f7deb83846d6b02fce690ca947284d4e01bf Mon Sep 17 00:00:00 2001 From: Brendan Harley Date: Mon, 11 Sep 2017 16:45:31 +0200 Subject: [PATCH] Update doc --- bootstrapvz/plugins/commands/README.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrapvz/plugins/commands/README.rst b/bootstrapvz/plugins/commands/README.rst index 3faf9d0..eb790a2 100644 --- a/bootstrapvz/plugins/commands/README.rst +++ b/bootstrapvz/plugins/commands/README.rst @@ -16,6 +16,7 @@ Settings (e.g. globbing will work). In addition to the manifest variables ``{root}`` is also available. It points at the root of the image volume. + ``chroot {root}`` should be used for the command to run in the images' environment. ``required`` ``manifest vars`` @@ -29,4 +30,4 @@ Create an empty `index.html` in `/var/www` and delete all locales except english commands: commands: - [touch, '{root}/var/www/index.html'] - - ['rm -rf /usr/share/locale/[^en]*'] + - ['chroot {root} rm -rf /usr/share/locale/[^en]*']