summaryrefslogtreecommitdiff
path: root/base-image
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-08-06 16:22:39 +0300
committerLars Wirzenius <liw@liw.fi>2023-08-06 16:22:39 +0300
commit014007839148d413a992790b059911c075bc0e42 (patch)
treeb4c040263247868693d32c69ef4d287b0a8f0340 /base-image
parent43ea397ad2c3a718ae6591e010914adafbb99960 (diff)
downloadansibleness-014007839148d413a992790b059911c075bc0e42.tar.gz
add base image for bookworm
Sponsored-by: author
Diffstat (limited to 'base-image')
-rw-r--r--base-image/bookworm-vm.vmdb51
1 files changed, 51 insertions, 0 deletions
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