I would like to runtime extend data partition when board if first time booted. I have a case where SD cards have size 4 or 8GB. Mender image with app is ~2,5G and rest should be used for data. As I don’t want to extend size of sdimg (also not possible to have different SD card sizes). I was thinking about creating some systemd service which will do the trick but then realized that /data and /uboot are added to /etc/fstab and in this case systemd mount it. Was thinking about disabling autom ounting and add systemd mount scripts (based on label like e.g.)
Then I can add dependent service file which will extend data partition to the end of sd card. Does anyone else have already some solution, ideas? Thanks.