All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] manipulating raw disk images as non-root user
Date: Mon, 4 Aug 2014 23:04:03 +0200	[thread overview]
Message-ID: <20140804210403.GG3875@free.fr> (raw)
In-Reply-To: <CAE9DZUThNrdD2AOHwsJRZG6fJh3=MRGe+Ggnh4ZrRxgXatJvWA@mail.gmail.com>

Dallas, All,

On 2014-08-02 11:45 -0500, Dallas Clement spake thusly:
> 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?

Well, as already pointed out, we do have a few host tools just for that
kind of usage, in the "Host utilities" sub-menu.

Also, if you want to have a look, I make use of those tools in my
Buildroot.config project:
    http://ymorin.is-a-geek.org/git/buildroot.config/

You may want to have a look at:
    http://ymorin.is-a-geek.org/git/buildroot.config/tree/scripts/genimages.d
and the subfolders for how to use those tools.

Note that all the scripts there in are part of a bigger infra. Feel free
to poke around the project tree.

(Warning: no doc, bleeding edge, unstable, no support... ;-) )

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  parent reply	other threads:[~2014-08-04 21:04 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
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 [this message]
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=20140804210403.GG3875@free.fr \
    --to=yann.morin.1998@free.fr \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.