From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] manipulating raw disk images as non-root user
Date: Sat, 2 Aug 2014 18:54:56 +0200 [thread overview]
Message-ID: <20140802185456.50a354db@free-electrons.com> (raw)
In-Reply-To: <CAE9DZUThNrdD2AOHwsJRZG6fJh3=MRGe+Ggnh4ZrRxgXatJvWA@mail.gmail.com>
Dear Dallas Clement,
On Sat, 2 Aug 2014 11:45:58 -0500, Dallas Clement wrote:
> I am trying to figure out a way to produce a uSD card image file during my
> build process and do it as a non-root user. I am hoping to do this from a
> post image script.
>
> I can create the image file with dd and partition it with parted as a
> non-root user. However, I have not figured out how to format, and populate
> the image file. Tools such as kpartx and losetup seem ideal for this
> purpose except that they must be run as root.
>
> Does anyone know of a way to do this using qemu or fuse or related tools?
You could have a look at genimage that is available as a package in
Buildroot. Yann E. Morin also had developed some patches for Buildroot
to make that possible, but they were not merged due, I believe, to a
too high complexity. I'm sure he will be available to give you pointers
to these patches.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2014-08-02 16:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-02 16:45 [Buildroot] manipulating raw disk images as non-root user Dallas Clement
2014-08-02 16:54 ` Thomas Petazzoni [this message]
2014-08-04 7:05 ` Waldemar Brodkorb
2014-08-04 17:56 ` Dallas Clement
2014-08-04 18:10 ` Thomas Petazzoni
2014-08-04 18:10 ` Austin S Hemmelgarn
2014-08-04 19:22 ` Dallas Clement
2014-08-04 21:04 ` Yann E. MORIN
2014-08-05 21:26 ` Dallas Clement
2014-08-06 17:15 ` Yann E. MORIN
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=20140802185456.50a354db@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/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