Skip to contentSkip to conversation

Howto take a snapshot from an image as ordinary user?

DISCUSSION Ferry Toth 1 participant 1 message Mar 7, 2020 Btrfs file system

lore
Share & tools
lore

Ferry Toth

author
#0 lore raw

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