summaryrefslogtreecommitdiff
path: root/installer.vmdb
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-01-07 15:06:29 +0200
committerLars Wirzenius <liw@liw.fi>2022-01-07 18:52:02 +0200
commit2c3f88259122323eb73eb40f4dec9d66483d926c (patch)
treeca22c3b0740bb2db51f1775d80dec57b7317140f /installer.vmdb
parent79dd4f5367ca66df6c2c56b751b4582554e39032 (diff)
downloadv-i-2c3f88259122323eb73eb40f4dec9d66483d926c.tar.gz
feat: make v-i script support my standard base install
Also, put as many packages as possible inside the cached portion, for speed. Sponsored-by: author
Diffstat (limited to 'installer.vmdb')
-rw-r--r--installer.vmdb72
1 files changed, 72 insertions, 0 deletions
diff --git a/installer.vmdb b/installer.vmdb
new file mode 100644
index 0000000..218a809
--- /dev/null
+++ b/installer.vmdb
@@ -0,0 +1,72 @@
+steps:
+ - mkimg: "{{ output }}"
+ size: 4G
+
+ - mklabel: gpt
+ device: "{{ output }}"
+
+ - 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: bullseye
+ mirror: http://deb.debian.org/debian
+ target: /
+ unless: rootfs_unpacked
+
+ - apt: install
+ packages:
+ - linux-image-amd64
+ fs-tag: /
+ unless: rootfs_unpacked
+
+ - cache-rootfs: /
+ unless: rootfs_unpacked
+
+ - apt: install
+ packages:
+ - python3-distutils
+ - console-setup
+ - locales-all
+ - ifupdown
+ - git
+ - ssh
+ - ansible
+ - lvm2
+ - cryptsetup
+ - cryptsetup-initramfs
+# - pass
+ - dosfstools
+# - emacs
+# - gpg
+# - scdaemon
+ tag: /
+
+ - ansible: /
+ playbook: v-i.yml
+
+ - fstab: /
+
+ - grub: uefi
+ tag: /
+ efi: efi