From 403ee80082a37ae6c155afb66c34a716b03e0362 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 6 Jan 2022 18:32:03 +0200 Subject: drop old stuff --- x220.vmdb | 116 -------------------------------------------------------------- 1 file changed, 116 deletions(-) delete mode 100644 x220.vmdb (limited to 'x220.vmdb') diff --git a/x220.vmdb b/x220.vmdb deleted file mode 100644 index 2d088a0..0000000 --- a/x220.vmdb +++ /dev/null @@ -1,116 +0,0 @@ -# This is a vmdb2 input file that installs Debian onto my Thinkpad -# X220. It has an SSD as sdb. - -steps: - - mklabel: gpt - device: "{{ image }}" - - # EFI partition. This MUST be vfat and cleartext so that UEFI BIOS - # can handle it. - - mkpart: primary - device: "{{ image }}" - start: 0% - end: 500M - tag: efi - - - mkfs: vfat - partition: efi - - # /boot partition. This will be cleartext, because GRUB doesn't seem - # to support LUKS2 yet. - - mkpart: primary - device: "{{ image }}" - start: 500M - end: 1G - tag: boot - - - mkfs: ext2 - partition: boot - - # The physical volume for LVM. This will be encrypted and the - # unlocked, opened variant will be used as the physical volume for - # LVM2. - - mkpart: primary - device: "{{ image }}" - start: 1G - end: 100% - tag: cleartext_pv0 - - - cryptsetup: cleartext_pv0 - password: asdf - name: pv0 - - - vgcreate: vg0 - physical: - - pv0 - - - lvcreate: vg0 - name: root - size: 10G - - - mkfs: ext4 - partition: root - - # Mount the file systems on top of each other. - - mount: root - - - mount: boot - dirname: /boot - mount-on: root - - - mount: efi - dirname: /boot/efi - mount-on: boot - - - virtual-filesystems: root - - # Install Debian. - - - unpack-rootfs: root - - - debootstrap: bullseye - mirror: http://deb.debian.org/debian - target: root - unless: rootfs_unpacked - - - apt: install - packages: - - linux-image-amd64 - tag: root - unless: rootfs_unpacked - - - cache-rootfs: root - unless: rootfs_unpacked - - # Create fstab and crypttab - - fstab: root - - # Install additional packages. These are not in the rootfs tarball, - # while I keep changing this list: it's easier and faster to iterate - # if the rootfs tarball doesn't need to be re-generated from - # scratch. - - apt: install - packages: - - console-setup - - cryptsetup - - cryptsetup-initramfs - - dosfstools - - ifupdown - - locales-all - - lvm2 - - psmisc - - python3 - - ssh - - strace - tag: root - - # Configure the system with Ansible. - - ansible: root - playbook: x220.yml - - # Install GRUB as the bootloader. - - grub: uefi - tag: root - efi: efi - quiet: true - image-dev: "{{ image }}" -- cgit v1.2.1