From 014007839148d413a992790b059911c075bc0e42 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 6 Aug 2023 16:22:39 +0300 Subject: add base image for bookworm Sponsored-by: author --- base-image/bookworm-vm.vmdb | 51 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 base-image/bookworm-vm.vmdb (limited to 'base-image') diff --git a/base-image/bookworm-vm.vmdb b/base-image/bookworm-vm.vmdb new file mode 100644 index 0000000..87539aa --- /dev/null +++ b/base-image/bookworm-vm.vmdb @@ -0,0 +1,51 @@ +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: bookworm + mirror: http://deb.debian.org/debian + target: / + unless: rootfs_unpacked + + - apt: install + packages: + - linux-image-amd64 + recommends: false + 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 -- cgit v1.2.1