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] [PATCH v2] Add option to copy config file to rootfs
Date: Thu, 31 Jul 2014 23:37:25 +0200	[thread overview]
Message-ID: <20140731213725.GO3960@free.fr> (raw)
In-Reply-To: <f9f901d7-df20-4a8e-9ef2-d0e7a7b0edcd@email.android.com>

Thomas?, All,

On 2014-07-31 20:40 +0200, Thomas De Schampheleire spake thusly:
> Thomas Petazzoni <thomas.petazzoni@free-electrons.com> schreef:
> >Dear Thomas De Schampheleire,
> >
> >On Thu, 31 Jul 2014 19:55:21 +0200, Thomas De Schampheleire wrote:
> >
> >> >I think the case where one would want this file in the generated
> >> >filesystem is a corner case, and that it would be better served with
> >> >a post-build script.
> >> 
> >> I think this is a feature that deserves to be in Buildroot 
> >> directly.  Just like rootfs-overlay used to be
> >>  something that people had to do manually from their
> >> post build script, but later became a supported
> >>  feature because many people found it useful, or the
> >>  feature to set the root password, this is something that is
> >> generally useful by many users, even those that don't fully know how
> >> to use the post build script to it's full ability, or did not yet
> >> realize the usefulness of the saving of the configuration.

<sarcastic>
Great! Let's include in Buildroot all the cruft that a post-build script
can do.
</sarcastic>

Sorry for the rant, really, but we introduced post-build scripts for a
reason: so that users can further customise their rootfs with whatever
they want to put/remove/tweak in there, without polluting Buildroot with
border-line behaviours.

And the root password, since you're speaking about it, is part of the
behaviour of the target system. The .config is just sitting there, and
serves no purpose in the running of the target system.

(crosstool-NG: everyone can make mistakes in their infancy! ;-) )

> >I don't really have a strong opinion on whether we should have this
> >feature or not, but what bothers me is adding yet another global config
> >option just for a small thing like that.
> >
> >If we were to include the .config file in the rootfs, could we do it
> >unconditionally? Or would the .config file size be problematic?
> 
> Not do much the size, but as specified in the help text
>  the potential root password will be readable too. So if
>  you get a hand on the rootfs image, you can
>  determine the password very easily, which is
>  probably not acceptable by all.

That, plus the fact the .config will also contain info from the packages
in br2-external, too, which might be a bit sensitive, and a definitive
no-no for production images.

And I still believe this is more of a convenience option for internal
use, or for development reasons. Production images will most probably
never ever have this file in them (no more would they have
/proc/config.gz either.)

So:
  1. _I_ still _think_ this should be handled in a post-build script;
  2. if we were to ever have this, this should *not* be unconditional;
  3. it should default to 'n';
  4. I will never ack this. :-p

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.  |
'------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2014-07-31 21:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-31 15:26 [Buildroot] [PATCH v2] Add option to copy config file to rootfs Nathaniel Roach
2014-07-31 17:16 ` Yann E. MORIN
2014-07-31 17:55   ` Thomas De Schampheleire
2014-07-31 18:17     ` Thomas Petazzoni
2014-07-31 18:40       ` Thomas De Schampheleire
2014-07-31 21:37         ` Yann E. MORIN [this message]
2014-08-01  4:45           ` Thomas De Schampheleire
2014-07-31 17:19 ` Matthew Weber
2014-07-31 21:50 ` Thomas Petazzoni

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=20140731213725.GO3960@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.