I am generating a btrfs system image using Yocto.
I want to take a snapshot from the image preferably inside a Yocto
recipe. The snapshot I can send 'over the air' to the remote (IoT) device.
Now I am able to loop mount the image file using udisksctl as an
ordinary user, which mounts the image under /media/ferry.
However, the owner of the mount point is root, and it appears I am not
allowed to take a snapshot as an ordinary user.
I think it is obvious that I don't want to run bitbake as root.
So what is the recommended way to generate a snapshot without becoming root?
Thanks,
Ferry