diff options
Diffstat (limited to 'base-image/bullseye-vm.vmdb')
-rw-r--r-- | base-image/bullseye-vm.vmdb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/base-image/bullseye-vm.vmdb b/base-image/bullseye-vm.vmdb new file mode 100644 index 0000000..9b1eda8 --- /dev/null +++ b/base-image/bullseye-vm.vmdb @@ -0,0 +1,50 @@ +steps: + - mkimg: "{{ output }}" + size: 4G + + - mklabel: msdos + device: "{{ output }}" + + - mkpart: primary + device: "{{ output }}" + start: 0% + end: 50% + tag: / + + - kpartx: "{{ output }}" + + - mkfs: ext4 + partition: / + + - mount: / + + - unpack-rootfs: / + + - debootstrap: bullseye + mirror: http://deb.debian.org/debian + target: / + unless: rootfs_unpacked + + - apt: install + packages: + - linux-image-amd64 + tag: / + unless: rootfs_unpacked + + - cache-rootfs: / + unless: rootfs_unpacked + + - chroot: / + shell: | + apt -y install python3 parted acpi + + - fstab: / + + - resize-rootfs: / + + - ansible: / + playbook: base-image.yml + + - grub: bios + tag: / + quiet: false |