summaryrefslogtreecommitdiff
path: root/x220.vmdb
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-01-06 18:32:03 +0200
committerLars Wirzenius <liw@liw.fi>2022-01-06 18:32:03 +0200
commit403ee80082a37ae6c155afb66c34a716b03e0362 (patch)
tree7e638a0a186968d9cf0a57a886e6dce7c2a576b9 /x220.vmdb
parent7f277a34aec1fef97016b64b959f2e8c06f31850 (diff)
downloadv-i-403ee80082a37ae6c155afb66c34a716b03e0362.tar.gz
drop old stuff
Diffstat (limited to 'x220.vmdb')
-rw-r--r--x220.vmdb116
1 files changed, 0 insertions, 116 deletions
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 }}"