summaryrefslogtreecommitdiff
path: root/vmdb/plugins/qemudebootstrap.mdwn
blob: 6475497979ae832dd15c65767d5e427bc5b00cf2 (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
36
37
38
Step: qemu-debootstrap
-----------------------------------------------------------------------------

This command has been merged into `debootstrap`.
If your builds run on Debian 10 or later,
it is recommended to use `debootstrap` instead of `qemu-debootstrap`.

Install packages using apt, which needs to already have been
installed, for a different architecture than the host where vmdb2 is
being run. For example, for building an image for a Raspberry Pi on an
Intel PC.

Step keys:

* `qemu-debootstrap` — REQUIRED; value is the codename of the Debian
  release to install: `stretch`, `buster`, etc.

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

* `mirror` — OPTIONAL; which Debian mirror to use.

* `keyring` — OPTIONAL; which gpg keyring to use to verify the
  packages. This is useful when using a non-official Debian repository
  (e.g. Raspbian) as by default qemu-debootstrap will use the keys
  provided by the "debian-archive-keyring" package.

* `arch` — REQUIRED; the foreign architecture to use.

* `variant` — OPTIONAL; the variant for debootstrap.

Example (in the .vmdb file):

    - qemu-debootstrap: buster
      target: root
      mirror: http://mirror.example.com/debian
      keyring: /etc/apt/trusted.gpg
      arch: arm64
      variant: buildd