File: cache_rootfs.mdwn

package info (click to toggle)
vmdb2 0.41-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 572 kB
  • sloc: python: 2,591; sh: 151; makefile: 17
file content (24 lines) | stat: -rw-r--r-- 960 bytes parent folder | download | duplicates (2)
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: cache-rootfs
-----------------------------------------------------------------------------

Create a tarball of the root filesystem in the image.

Step keys:

* `cache-rootfs` — REQUIRED; tag of root filesystem on image.
* `force` — OPTIONAL; boolean that enables overwriting of an existing rootfs
    tarball by `vmdb2`, allowing the tarball to be used as both a build input and a
    build output. This can be useful in multi-stage build chains where a "common base
    OS" rootfs filesystem is populated and packaged as a rootfs tarball by `vmdb2`, and
    this tarball is consumed by multiple downstream `vmdb2` builds that extract the
    tarball into disk images that have different partition layouts and/or filesystems.

Example (in the .vmdb file):

    # typical use
    - cache-rootfs: root
      unless: rootfs_unpacked

    # create a rootfs tarball output at the end of a build process
    - cache-rootfs: root
      force: true