mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Clemens Gruber <clemens.gruber@pqgruber.com>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] root.ext2
Date: Thu, 11 May 2017 18:14:21 +0200	[thread overview]
Message-ID: <20170511161421.GA1185@archie.localdomain> (raw)
In-Reply-To: <20170508080210.7h3ie4huxkl2o4k2@pengutronix.de>

Hi,

On Mon, May 08, 2017 at 10:02:10AM +0200, Michael Olbrich wrote:
> mkfs.ext4 in the current version can add content to the filesystem. So that
> is the way to go. I started a patch for genimage to use it, but so far I'm
> lacking the time to finish this.
> The main problem is, that mkfs.ext4 checks /etc/mke2fs.conf by default and
> looks up some stuff in /proc when deciding what to do. So it's a bit tricky
> to make sure that the build host does not influence the creation of the
> image.

Ok, so considering these problems of host influences when using
mkfs.ext4, even though -d is now a supported option, shouldn't we then
give make_ext4fs a try?

If mkfs.ext4 reads from /proc, we would have to patch this out or work
with upstream e2fsprogs adding a flag to skip these host system lookups?

If you still prefer mkfs.ext4, please send the current state of your
patch.

While we're at it, I thought we could also add support for f2fs image
creation. The problem there however is, that neither the mkfs.f2fs tool
nor any other 3rd party tool I know of can create a f2fs filesystem with
a pre-defined root directory. But maybe I missed something.
And loop-mounting to copy stuff to it, is probably not an option.

--

By the way:
In my platformconfig, I currently use IMAGE_ROOT_EXT from section image2
and not IMAGE_EXT2 from section image, so in my case, genext2fs is
called from rules/post/image_ext2.make and not via genimage from
rules/image-root-ext.make.
What is the purpose of there being two image sections image and image2
and is one of them deprecated or discouraged?

Thanks,
Clemens

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2017-05-11 16:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-07 15:56 Clemens Gruber
2017-05-08  8:02 ` Michael Olbrich
2017-05-11 16:14   ` Clemens Gruber [this message]
2017-05-12 15:50     ` Michael Olbrich

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=20170511161421.GA1185@archie.localdomain \
    --to=clemens.gruber@pqgruber.com \
    --cc=ptxdist@pengutronix.de \
    /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