Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] fs: allow extra arguments to common tarball extraction
Date: Fri, 8 Jun 2018 23:06:41 +0200	[thread overview]
Message-ID: <20180608210641.GF2090@scaer> (raw)
In-Reply-To: <5f35f9b5-e308-3fff-138d-07f7b814fdd1@mind.be>

Arnout, Carlos, All,

On 2018-06-08 21:59 +0200, Arnout Vandecappelle spake thusly:
> On 08-06-18 19:19, Yann E. MORIN wrote:
> > On 2018-06-07 23:03 +0200, Arnout Vandecappelle spake thusly:
> >> On 06-06-18 20:51, Yann E. MORIN wrote:
> >>> But my position has always been consistent on this topic: the images
> >>> that Buildroot generates only ever covers just "basic" situations, using
> >>> a single-filesystem layout. Anything that needs to do a multi-filesystem
> >>> layout should be done as a new filesystem. Doing it in a new filesystem
> >>> is much more flexible than whatever kconfig option we may ever add. And
> >>> since we already have this wonderful flexibility, I don't think it makes
> >>> sense to add a new option that duplicates only a very limited subset of
> >>> that flexibility. That duplication is not good, IMNSHO...
> >>
> >>  There is (in my even less humble opinion) one way that we can solve this
> >> generically: by adding a genimage filesystem. genimage is able to create
> >> separate filesystem images for subtrees. so it can cover many use cases in a
> >> generic way.
> >>
> >>  There are probably a few gotchas, but I still believe it should be possible.
> > 
> > Like tweaking the /etc/fstab accordingly, which genimage does not do on
> > its own?
> 
>  No, we don't want to tweak fstab. There is no way to know if you want things to
> be mounted in that particular way, and whether it should be mounted
> automatically, and if some flags are needed, and so on.

Right, fstab was just an example of site-specific tweaks to be done.
Others may want to use startup scripts or systemd units to do the
mounts, or to format a partition and rxtract a factory-defaults tarball
in that filesystem, or get that from The Cloud, or whatever.

Waht I mean is that splitting the filesystem is easy. What is not easy
is that each part thus split can be in different formats, located in so
different locations, retrieved and accessed in so many different ways,
that we can't possibly imagine, and much less cover in a generic way.

The only way we can allow people to do what they want, is by providing
them with a per-filesysem target/ directory already prepared that they
can arrange at will.

And as an example of a split-var filesytem, see the attached br2-external
tree. It ultimagtely creates $(BINARIES_DIR)/rootfs.meh, a squashfs
image of /) and $(BINARIES_DIR)/rootfs.meh-var.tar, a tarball of /var.
The only missing pieve is the runtime startup scripts that will format
the on-board partition, extact /var.tar in there, and mount it.

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.  |
'------------------------------^-------^------------------^--------------------'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: br2-multi-fs.tar.gz
Type: application/x-tar-gz
Size: 834 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180608/fe0c1969/attachment.bin>

  reply	other threads:[~2018-06-08 21:06 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-03  2:21 [Buildroot] [PATCH] fs: allow extra arguments to common tarball extraction Carlos Santos
2018-06-05 17:23 ` Yann E. MORIN
2018-06-06 12:46   ` Carlos Santos
2018-06-06 18:51     ` Yann E. MORIN
2018-06-07 21:03       ` Arnout Vandecappelle
2018-06-07 23:12         ` Carlos Santos
2018-06-08  7:48           ` Arnout Vandecappelle
2018-06-08 17:34             ` Yann E. MORIN
2018-06-08 19:58               ` Arnout Vandecappelle
2018-06-08 17:26           ` Yann E. MORIN
2018-06-09  1:06             ` Carlos Santos
2018-06-09  7:31               ` Yann E. MORIN
2018-06-08 17:19         ` Yann E. MORIN
2018-06-08 19:59           ` Arnout Vandecappelle
2018-06-08 21:06             ` Yann E. MORIN [this message]
2018-06-10 23:48               ` Carlos Santos
2018-06-09  0:58         ` Carlos Santos
2018-10-26 11:43           ` Peter Korsgaard

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=20180608210641.GF2090@scaer \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox