summaryrefslogtreecommitdiff
path: root/base.vmdb
blob: c7ca957c53da21e841dd824b187d34d943c866d1 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# This is a sample vmdb2 input file for testing vmdb2 with a few
# different configurations. The check-one script will modify this
# based on its command line options, before building an image.

steps:
  - mkimg: "{{ output }}"
    size: 4G

  - mklabel: msdos
    device: "{{ output }}"

  # Create an EFI partition. It'll not be used if we install GRUB for
  # UEFI, but an extra partition doesn't break anything, and the waste
  # of space doesn't matter for a test image.
  - mkpart: primary
    device: "{{ output }}"
    start: 0%
    end: 1G
    tag: efi

  - mkpart: primary
    device: "{{ output }}"
    start: 1G
    end: 100%
    tag: /

  - kpartx: "{{ output }}"

  - mkfs: vfat
    partition: efi

  - mkfs: ext4
    partition: /

  - mount: /

  - unpack-rootfs: /

  - debootstrap: buster
    mirror: http://deb.debian.org/debian
    variant: minbase
    target: /
    unless: rootfs_unpacked
    include:
      - python3
      - systemd-sysv

  - virtual-filesystems: /

  - cache-rootfs: /
    unless: rootfs_unpacked

  - fstab: /

  - ansible: /
    playbook: ansible.yml

  - grub: uefi
    tag: /
    efi: efi
    console: serial