Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Waldemar Brodkorb <wbx@openadk.org>
To: buildroot@busybox.net
Subject: [Buildroot] manipulating raw disk images as non-root user
Date: Mon, 4 Aug 2014 09:05:58 +0200	[thread overview]
Message-ID: <20140804070558.GK32743@waldemar-brodkorb.de> (raw)
In-Reply-To: <CAE9DZUThNrdD2AOHwsJRZG6fJh3=MRGe+Ggnh4ZrRxgXatJvWA@mail.gmail.com>

Hi Dallas,
Dallas Clement wrote,

> Hi All,
> 
> 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 use genext2fs to generate a filesystem as non-root.

Installing a bootloader as non-root would be tricky, but is 
possible, too.
 
best regards
 Waldemar

  parent reply	other threads:[~2014-08-04  7:05 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 [this message]
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=20140804070558.GK32743@waldemar-brodkorb.de \
    --to=wbx@openadk.org \
    --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