linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Howto take a snapshot from an image as ordinary user?
@ 2020-03-07 21:21 Ferry Toth
  2020-03-08 15:39 ` Ferry Toth
  0 siblings, 1 reply; 5+ messages in thread
From: Ferry Toth @ 2020-03-07 21:21 UTC (permalink / raw)
  To: linux-btrfs

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


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Howto take a snapshot from an image as ordinary user?
@ 2020-03-07 21:11 Ferry Toth
  0 siblings, 0 replies; 5+ messages in thread
From: Ferry Toth @ 2020-03-07 21:11 UTC (permalink / raw)
  To: linux-btrfs

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-03-15 15:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-07 21:21 Howto take a snapshot from an image as ordinary user? Ferry Toth
2020-03-08 15:39 ` Ferry Toth
2020-03-15 15:48   ` Ferry Toth
2020-03-15 15:48     ` Ferry Toth
  -- strict thread matches above, loose matches on Subject: below --
2020-03-07 21:11 Ferry Toth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).