From: Ferry Toth <ftoth@telfort.nl>
To: linux-btrfs@vger.kernel.org
Subject: Re: Howto take a snapshot from an image as ordinary user?
Date: Sun, 8 Mar 2020 16:39:49 +0100 [thread overview]
Message-ID: <d87f9e87-0e77-c758-aae9-f0d069b0e6da@telfort.nl> (raw)
In-Reply-To: <58ad5d52-425a-a89d-d042-e9941088828a@gmail.com>
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
>
>
next prev parent reply other threads:[~2020-03-08 15:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-07 21:21 Howto take a snapshot from an image as ordinary user? Ferry Toth
2020-03-08 15:39 ` Ferry Toth [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d87f9e87-0e77-c758-aae9-f0d069b0e6da@telfort.nl \
--to=ftoth@telfort.nl \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).