From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package: Fix overwrite inittab w/ default skeleton
Date: Thu, 16 Jul 2015 23:35:53 +0200 [thread overview]
Message-ID: <20150716233553.4d46b3d0@free-electrons.com> (raw)
In-Reply-To: <55A81F61.3050307@zacarias.com.ar>
Hello,
On Thu, 16 Jul 2015 18:17:21 -0300, Gustavo Zacarias wrote:
> Actually i reported the bug to Maxime, he just forgot to add the
> Reported-By.
Ok, thanks for the info.
> The problem with this is that it's a change in behaviour, this didn't
> happen in the previous releases.
Well, all the commits I cited in my previous reply definitely changed
the behavior in a similar way, just for different files.
> My usage scenario is customized initscripts that rely on a very minimal
> inittab (rcS, rcK and getty, nothing more).
> All of the basic startup is handled in initscripts, which i think we
> should do for BR as well - there's no reason to stick a lot of stuff in
> inittab IMO.
Possibly yes, though it's a different question. Even if the default
inittab is more minimal, there are still lots of reasons for which you
might need a custom version of it. So making the default version more
minimal is kinda unrelated to whether we keep or overwrite the inittab
of a custom skeleton.
> But even if we do that i'm still concerned about the behaviour change
> that can lead to non-working systems when upgrading buildroot.
> Another option is to just get rid of the custom skeleton altogether, if
> it's being stepped on right and left what's the purpose?
My personal preference would be to ultimately get rid of the custom
skeleton thing. We have been encouraging rootfs overlay and post-build
scripts since quite a while in the Buildroot manual, see
http://buildroot.org/downloads/manual/manual.html#rootfs-custom:
"""
The two recommended methods, which can co-exist, are root filesystem
overlay(s) and post build script(s).
Root filesystem overlays (BR2_ROOTFS_OVERLAY)
Post-build scripts (BR2_ROOTFS_POST_BUILD_SCRIPT)
[...]
Below two more methods of customizing the target filesystem are
described, but they are not recommended.
Direct modification of the target filesystem
Custom target skeleton (BR2_ROOTFS_SKELETON_CUSTOM)
[...]
This method is not recommended because it duplicates the entire
skeleton, which prevents taking advantage of the fixes or improvements
brought to the default skeleton in later Buildroot releases.
"""
If were to not overwrite the inittab, we should also revert all of the
commits I mentioned, and guarantee that the files in the custom
skeleton would not be overwritten.
I agree with you that this is a change in behavior, but I would say
it's a change for good: making people realize that using a custom
skeleton very often doesn't work as they intend it to work.
Any opinions from others?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2015-07-16 21:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-16 16:30 [Buildroot] [PATCH] package: Fix overwrite inittab w/ default skeleton Maxime Hadjinlian
2015-07-16 16:38 ` Gustavo Zacarias
2015-07-16 21:07 ` Thomas Petazzoni
2015-07-16 21:17 ` Gustavo Zacarias
2015-07-16 21:35 ` Thomas Petazzoni [this message]
2015-07-16 21:42 ` Maxime Hadjinlian
2015-07-16 22:56 ` Arnout Vandecappelle
2015-07-16 21:48 ` Gustavo Zacarias
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=20150716233553.4d46b3d0@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