![](https://seccdn.libravatar.org/avatar/29495d4971cc39e3e98fb5119b7f1698.jpg?s=120&d=mm&r=g)
22 May
2024
22 May
'24
10:00
Hi, The RPI4 JeOS image (https://en.opensuse.org/HCL:Raspberry_Pi4) automatically grows the root filesystem partition on boot. I have a custom partition setup based on this image where the root filesystem is encrypted. It has 3 partitions: 1. fat16 UEFI, 2. ext4 /boot partition 3. luks ext4 root partition. I create an image of this setup to use on several machines, and I'd like to automatically grow the luks partition on boot. My understanding is that it's normally done by systemd-repart, but it is possible to set it up so it resizes the root partition after cryptsetup before mounting the root partition? How do I set that up? Jonas