summaryrefslogtreecommitdiff
path: root/vmdb/plugins/kpartx.mdwn
blob: 0074f38bbd677be771db19662cfa2aa3ba9b5ce1 (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
Step: kpartx
-----------------------------------------------------------------------------

Create loop devices for partitions in an image file. Not needed when
installing to a real block device, instead of an image file.

Step keys:

* `kpartx` — REQUIRED; filename of block device with partitions.

* `tags` — OPTIONAL; list of tags to apply to partitions when re-using
  an existing image that has already been populated with formatted partitions

Example (in the .vmdb file):

    # typical use
    - kpartx: "{{ output }}"

    # using an image that already contains partitions containing filesystems
    # that should be mounted as `/boot` and `/`
    - kpartx: "{{ output }}"
      tags:
        - boot
        - root