Contents
Description
Voor Ubuntu 24.04 is de desktop installer een beetje rot. Simpele installatie gaat prima, maar de combinatie van een custom partitie indeling met LUKS diskencryptie werkt niet.
Helaas installeerd Ubuntu standaard een vrij kleine boot partitie, die na enkele kernel updates nog wel eens vol wil lopen. Ik maak deze dus graag 2GiB.
Om dit toch voor elkaar te krijgen moet je de 'geautomatiseerde installatie' gebruiken. Hiervoor formatteer je eerst volledig handmatig de disk(s) inc LUKS & LVM, dan maak je een autoinstall.yml file waarin je nogmaals die hele indeling beschrijft, en deze geef je dan mee aan de Ubuntu installer.
Zie deze tutorial voor het hele proces; https://rikublock.dev/docs/tutorials/ubuntu-install-lvm
Mijn autoinstall.yml file, met een 2GB boot partitie, en 16GB swap voor t.b.v. hibernate ziet er zo uit:
autoinstall:
version: 1
interactive-sections:
- 'identity'
source:
id: ubuntu-desktop
storage:
version: 1
swap:
size: 0
config:
- id: disk-main
type: disk
path: /dev/nvme0n1
ptable: gpt
preserve: true
grub_device: false
- id: partition-1
type: partition
path: /dev/nvme0n1p1
device: disk-main
size: 536870912
flag: boot
number: 1
preserve: true
grub_device: true
- id: partition-2
type: partition
path: /dev/nvme0n1p2
device: disk-main
size: 2147483648
flag: linux
number: 2
preserve: true
wipe: superblock
grub_device: false
- id: partition-3
type: partition
path: /dev/nvme0n1p3
device: disk-main
size: 509424435200
flag: linux
number: 3
preserve: true
grub_device: false
- id: dmcrypt-lvm
type: dm_crypt
path: /dev/nvme0n1p3
volume: partition-3
dm_name: nvme0n1p3_crypt
preserve: true
- id: lvm-volgroup-vgubuntu
type: lvm_volgroup
devices:
- dmcrypt-lvm
name: vgubuntu
preserve: true
- id: lvm-partition-swap
type: lvm_partition
path: /dev/dm-2
volgroup: lvm-volgroup-vgubuntu
size: 17179869184
name: swap
preserve: true
wipe: superblock
- id: lvm-partition-root
type: lvm_partition
path: /dev/dm-3
volgroup: lvm-volgroup-vgubuntu
size: 492226740224
name: root
preserve: true
wipe: superblock
- id: format-partition-1
type: format
volume: partition-1
fstype: vfat
preserve: true
- id: format-partition-2
type: format
volume: partition-2
fstype: ext4
preserve: false
- id: format-lvm-partition-swap
type: format
volume: lvm-partition-swap
fstype: swap
preserve: false
- id: format-lvm-partition-root
type: format
volume: lvm-partition-root
fstype: ext4
preserve: false
- id: mount-swap
type: mount
path: ''
device: format-lvm-partition-swap
- id: mount-root
type: mount
path: /
device: format-lvm-partition-root
- id: mount-boot-efi
type: mount
path: /boot/efi
device: format-partition-1
- id: mount-boot
type: mount
path: /boot
device: format-partition-2