![](https://seccdn.libravatar.org/avatar/9435667f7160374bc34a8600b686aecd.jpg?s=120&d=mm&r=g)
On Wed, May 22, 2024 at 1:00 PM Jonas Kvinge
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
No, openSUSE images are normally using kiwi in particular dracut module kiwi-repart.
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?
It should be possible to use it manually. It gets its config from /config.partids in initrd: andrei@tumbleweed:/tmp/dracut> cat ./config.partids kiwi_BootPart="3" kiwi_EfiPart="1" kiwi_RootPart="3" kiwi_SwapPart="2" andrei@tumbleweed:/tmp/dracut> and tries to resize the ${kiwi_RootPart} partition. I am afraid you will need to look at kiwi source code for documentation.