Re: [gentoo-dev] Separate boot/root already [WAS: eselect init]

2013-05-28 Thread Luca Barbato
On 05/28/2013 01:45 AM, Walter Dnes wrote:
   Out of sheer curiosity... is bb-init based on busybox?  If so, a

it IS busybox =)

 separate partition would also prevent standard utilities from stomping
 all over their busybox symlink equivalants.  Add another entry to the
 grub/lilo menu, and boot from that.

You don't need symlinks, you have a startscript that runs busybox ash,
then it will use all its applets, init included.

This way about all the openrc shell scripts is executed by the same
interpreter and sed/grep and such are just function calls and not
slightly more pricy fork+exec.

Doing this way you get a quite fast boot and depending on your needs you
can leverage more busybox applets to replace even more programs (e.g.
dhcpcd).

That would be the theoretical fastest boot possible short of integrating
start-stop-daemon in busybox.

lu



[gentoo-dev] Separate boot/root already [WAS: eselect init]

2013-05-27 Thread Walter Dnes
On Mon, May 27, 2013 at 01:47:49AM +0200, Luca Barbato wrote

 Yes, I tested it first and got the whole system unworkable, one
 single mode later I baked something to get at least the minimal
 functionality, supporting our xdm script properly required some more
 effort I hadn't time to pour that day.

  People who want to try something different in distros, without
irrevocably switching over, normally have a separate partition.  This is
beginning to look like the simplest, least error-prone approach, even
if it is heavy-ganded.

  Out of sheer curiosity... is bb-init based on busybox?  If so, a
separate partition would also prevent standard utilities from stomping
all over their busybox symlink equivalants.  Add another entry to the
grub/lilo menu, and boot from that.

-- 
Walter Dnes waltd...@waltdnes.org
I don't run desktop environments; I run useful applications