Re: Howto take a snapshot from an image as ordinary user?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

Op 07-03-2020 om 22:21 schreef Ferry Toth:
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.

To clarify, I know that I can chown the mount point after mounting.
But to do that I need to sudo it.

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






[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux