Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 0/7] [RFC] Introduce services as a (long-term) replacement for _INSTALL_INIT_(SYSV|SYSTEMD) (branch yem/services)
Date: Thu, 12 Mar 2015 15:59:02 +0100	[thread overview]
Message-ID: <20150312155902.2ff7e30d@free-electrons.com> (raw)
In-Reply-To: <cover.1426112628.git.yann.morin.1998@free.fr>

Dear Yann E. MORIN,

On Wed, 11 Mar 2015 23:30:18 +0100, Yann E. MORIN wrote:

> Following up on Gustavo's proposal [0] on a clean up on our init
> scripts (and eventually our systemd unit files), here is an *RFC*
> series that tries to implement Gustavo's idea.

I am personally not in favor of an approach where kconfig options are
used to enable/disable services, because it's a slippery slope. I very
much prefer Gustavo's proposal of /etc/{default,config}/ files, that
users can override in their rootfs overlays or post-build script.

Why do I have this opinion?

Simply because your proposal is limited to just enabling/disabling
services. But then people will want kconfig options to set the TFTP
server root directory, to set the lighttpd server options foo or bar,
to configure the NTP configuration options, and so on. This is clearly
not a direction we want to take I believe as it will simply require
more and more and more kconfig options.

Instead, let's have some /etc/default/<service> files, which allow to
both define whether <service> is enabled or not, but also allow to set
various other service-specific configuration options.

I think Buildroot is a toolbox to generate your system, but you *must*
do some additional customization to have a system tailored to your
needs. What I believe is great in Buildroot is that is basically just
builds the upstream source code, and installs it. It doesn't try to be
a distro that imposes its own Web interface, its own organization of
the filesystems, etc. We just build and install everything, and provide
minimal sane defaults, and let users customize everything else.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  parent reply	other threads:[~2015-03-12 14:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-11 22:30 [Buildroot] [PATCH 0/7] [RFC] Introduce services as a (long-term) replacement for _INSTALL_INIT_(SYSV|SYSTEMD) (branch yem/services) Yann E. MORIN
2015-03-11 22:30 ` [Buildroot] [PATCH 1/7] package infra: print the name of the package being parsed Yann E. MORIN
2015-03-11 22:30 ` [Buildroot] [PATCH 2/7] Makefile: always scan packages' .mk files, even with no .config Yann E. MORIN
2015-03-11 22:30 ` [Buildroot] [PATCH 3/7] Makefile: introduce a intermediate rule before the configurators Yann E. MORIN
2015-03-11 22:30 ` [Buildroot] [PATCH 4/7] packages: introduce a generated kconfig snippet in the menuconfig Yann E. MORIN
2015-03-11 22:30 ` [Buildroot] [PATCH 5/7] packages: generate services sub-menu Yann E. MORIN
2015-03-11 22:30 ` [Buildroot] [PATCH 6/7] [INCOMPLETE] pkg-generic: act on enabled services Yann E. MORIN
2015-03-11 22:30 ` [Buildroot] [PATCH 7/7] [NOT TO BE APPLIED] package/busybox: add afake services as example Yann E. MORIN
2015-03-12 13:40 ` [Buildroot] [PATCH 0/7] [RFC] Introduce services as a (long-term) replacement for _INSTALL_INIT_(SYSV|SYSTEMD) (branch yem/services) Mike Williams
2015-03-12 14:59 ` Thomas Petazzoni [this message]
2015-03-13 13:39   ` Mike Williams

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=20150312155902.2ff7e30d@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --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