![](https://seccdn.libravatar.org/avatar/9435667f7160374bc34a8600b686aecd.jpg?s=120&d=mm&r=g)
On Wed, May 22, 2024 at 11:06 PM Jonas Kvinge
On Wed, 2024-05-22 at 14:17 +0300, Andrei Borzenkov wrote:
On Wed, May 22, 2024 at 1:00 PM Jonas Kvinge
wrote: 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.
Thanks, that helped me. Since I've rebuilt the initramdisk with dracut under chroot before booting, the kiwi modules weren't included because "check" in module_setup returns 255. If I run dracut with --force-add "kiwi-repart", it's included, but it stops here: https://github.com/OSInside/kiwi/blob/1e9fdf24a15e3bd591f0ac01684d2546971049... because the "/.profile" doesn't exist in the image, but the /config.partids exists. The .profile file should be the kiwi configuration, any idea where it is, or where the kiwi sources for rpi4 images are?
It is generated by kiwi and reflects image settings. Did you consider using kiwi to build your images? You can adapt one of the existing configurations. openSUSE images are built in the project https://build.opensuse.org/package/show/openSUSE:Factory:ARM/JeOS you can filter for raspberry to get the list of kiwi configurations for different images.