From: Ferry Toth <fntoth@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: Howto take a snapshot from an image as ordinary user?
Date: Sat, 7 Mar 2020 22:11:24 +0100 [thread overview]
Message-ID: <adae8972-b24d-af56-8b86-3e47e0c331dd@gmail.com> (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
next reply other threads:[~2020-03-07 21:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-07 21:11 Ferry Toth [this message]
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
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=adae8972-b24d-af56-8b86-3e47e0c331dd@gmail.com \
--to=fntoth@gmail.com \
--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).