From: Darren Hart <dvhart@linux.intel.com>
To: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: yocto@yoctoproject.org
Subject: Re: RFC: poky-tiny: init procedure
Date: Fri, 15 Jun 2012 16:04:21 -0700 [thread overview]
Message-ID: <4FDBBF75.1070600@linux.intel.com> (raw)
In-Reply-To: <20120615090535.3516e5a5@skate>
On 06/15/2012 12:05 AM, Thomas Petazzoni wrote:
> Le Fri, 15 Jun 2012 07:31:45 +0100,
> Tomas Frydrych <tf+lists.yocto@r-finger.com> a écrit :
>
>> Hi Darren,
>>
>> On 14/06/12 22:09, Darren Hart wrote:
>>> This solution improves the kick-the-tires
>>> experience with poky-tiny, without pulling in all of init,
>>
>> I think you really should quantify what 'all of init' means, without
>> this you are addressing a problem that is merely perceived. Just a
>> quick look shows that the sysvinit package is about 120KB unpacked,
>> for that you get a solution that is tested, robust, and supported
>> across Yocto.
>
> FWIW, Busybox comes with its own implementation of a very simple and
> basic init, which only takes a few KB of space inside the Busybox
> binary. That's what we use by default in Buildroot, and it works just
> fine. It's a really good trade-off between no init at all, and a
> full-blown sysvinit system.
>
Good point on this. I had a look. Enabling the basics here, including
the ability to give the controlling console to commands starting with a
dash in inittab results in a 5664 byte delta (compared with 2560 bytes
for enabling setsid and cttyhack). Note that the help in busybox
suggests the cttyhack may be more reliable than the init support for
handing over the controlling terminal.
So the difference between the two options is about 3k, but enabling
setsid and cttyhack may enable others to things besides what I am
looking to do.
I have sent a patch to oe-core to enable SETSID and CTTYHACK in the
default defconfig.
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
next prev parent reply other threads:[~2012-06-15 23:05 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-14 0:33 RFC: poky-tiny: init procedure Darren Hart
2012-06-14 1:09 ` Tim Bird
2012-06-14 1:20 ` Darren Hart
2012-06-14 2:55 ` Darren Hart
2012-06-14 7:11 ` Tomas Frydrych
2012-06-14 21:09 ` Darren Hart
2012-06-15 6:31 ` Tomas Frydrych
2012-06-15 7:05 ` Thomas Petazzoni
2012-06-15 23:04 ` Darren Hart [this message]
2012-06-15 19:49 ` Tim Bird
2012-06-15 21:26 ` Tomas Frydrych
2012-06-15 23:15 ` Darren Hart
2012-06-16 8:53 ` Tomas Frydrych
2012-06-15 21:10 ` Tim Bird
2012-06-15 23:21 ` Darren Hart
2012-06-18 11:50 ` Richard Purdie
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=4FDBBF75.1070600@linux.intel.com \
--to=dvhart@linux.intel.com \
--cc=thomas.petazzoni@free-electrons.com \
--cc=yocto@yoctoproject.org \
/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.