summaryrefslogtreecommitdiff
path: root/vmdb/plugins/chroot.mdwn
blob: 87fd5ecd4bbf2e21d85e7a1ed89ec08b54746a82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Step: `chroot`
-----------------------------------------------------------------------------

Run a shell snippet in a chroot inside the image.

Step keys:

* `chroot` — REQUIRED; value is the tag for the root filesystem.

* `shell` — REQUIRED; the shell snippet to run

Example (in the .vmdb file):

    - chroot: root
      shell: |
          echo I am in chroot


Step: `shell`
-----------------------------------------------------------------------------

Run a shell snippet on the host. This is not run in a chroot, and can
access the host system.

Step keys:

* `root-fs` — REQUIRED; value is the tag for the root filesystem.

* `shell` — REQUIRED; the shell snippet to run

Example (in the .vmdb file):

    - root-fs: root
      shell: |
          echo I am in NOT in chroot.