summaryrefslogtreecommitdiff
path: root/installer.vmdb
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-01-09 13:35:40 +0200
committerLars Wirzenius <liw@liw.fi>2022-01-10 10:20:34 +0200
commit087b65ebe2e81ed51f1796a999d06485bb84a712 (patch)
tree69265b035b893d697b3597a8e2c5de980ea08e61 /installer.vmdb
parent949822c2f2ec0b7fbbf7969c2868435f189aae93 (diff)
downloadv-i-087b65ebe2e81ed51f1796a999d06485bb84a712.tar.gz
feat: replace options with a YAML specification file
Files can be kept in git. Command line invocation are less convenient. Also: discard all the drives, allow extra LVs to be created, and refactor the code to be easier to follow. Sponsored-by: author
Diffstat (limited to 'installer.vmdb')
-rw-r--r--installer.vmdb37
1 files changed, 21 insertions, 16 deletions
diff --git a/installer.vmdb b/installer.vmdb
index 218a809..9379f1b 100644
--- a/installer.vmdb
+++ b/installer.vmdb
@@ -15,7 +15,7 @@ steps:
device: "{{ output }}"
start: 1G
end: 100%
- tag: /
+ tag: root
- kpartx: "{{ output }}"
@@ -23,24 +23,24 @@ steps:
partition: efi
- mkfs: ext4
- partition: /
+ partition: root
- - mount: /
+ - mount: root
- - unpack-rootfs: /
+ - unpack-rootfs: root
- debootstrap: bullseye
mirror: http://deb.debian.org/debian
- target: /
+ target: root
unless: rootfs_unpacked
- apt: install
packages:
- linux-image-amd64
- fs-tag: /
+ fs-tag: root
unless: rootfs_unpacked
- - cache-rootfs: /
+ - cache-rootfs: root
unless: rootfs_unpacked
- apt: install
@@ -55,18 +55,23 @@ steps:
- lvm2
- cryptsetup
- cryptsetup-initramfs
-# - pass
- dosfstools
-# - emacs
-# - gpg
-# - scdaemon
- tag: /
+ tag: root
- - ansible: /
- playbook: v-i.yml
+ - ansible: root
+ playbook: installer.yml
- - fstab: /
+ - fstab: root
+
+ - copy-file: /root/vi
+ src: v-i
+ perm: 0755
+
+ - copy-file: /root/std.yml
+ src: std.yml
+
+ - zerofree: root
- grub: uefi
- tag: /
+ tag: root
efi: efi