FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Embedded

 
 
LinkBack Thread Tools
 
Old 07-27-2011, 06:36 PM
Alon Bar-Lev
 
Default busybox config with openrc

Last time I checked it needed nothing, but it was long ago.
Just disable the start-stop-daemon of busybox and use the one of openrc.
Of course you need to hack the init configuration, as baselayout won't
work with busybox's init and set up mdev service replacement instead
of udev services.

I think that most of the packages you listed are not required for
regular configuration (minimal).


On Wed, Jul 27, 2011 at 9:12 PM, Kfir Lavi <lavi.kfir@gmail.com> wrote:
>
> Hi,
> Can someone share with me a busybox configuration that will
> support openrc and the startup scripts.
> I mean that the startup process will run without errors.
>
> Without Busybox I found that this packages are required more or less:
> sys-apps/baselayout
> app-portage/portage-utils
> sys-apps/ethtool
> app-admin/syslog-ng
> app-shells/bash
> sys-apps/shadow
> sys-apps/grep
> sys-fs/udev
> net-misc/openssh
> sys-fs/e2fsprogs # fsck.ext4
> sys-apps/net-tools # hostname
> sys-apps/findutils # find
> sys-apps/module-init-tools # modprobe
> sys-process/procps # sysctl
> net-misc/iputils
>
> Regards,
> Kfir
 
Old 07-28-2011, 05:06 AM
Mike Frysinger
 
Default busybox config with openrc

On Wed, Jul 27, 2011 at 11:36, Alon Bar-Lev wrote:
> Of course you need to hack the init configuration, as baselayout won't
> work with busybox's init

i'm not sure i follow. there's no reason that i know of that you cant
configure busybox's init to work fine with openrc. openrc itself
doesnt require sysvinit ... just *some* init to execute its soft
runlevels.
-mike
 
Old 07-28-2011, 06:57 AM
Alon Bar-Lev
 
Default busybox config with openrc

On Thu, Jul 28, 2011 at 8:06 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> On Wed, Jul 27, 2011 at 11:36, Alon Bar-Lev wrote:
>> Of course you need to hack the init configuration, as baselayout won't
>> work with busybox's init
>
> i'm not sure i follow. *there's no reason that i know of that you cant
> configure busybox's init to work fine with openrc. *openrc itself
> doesnt require sysvinit ... just *some* init to execute its soft
> runlevels.
> -mike

Right.
So as far as I know you cannot install baselayout, and need to write
your own busybox format inittab.
But I may be wrong.
 
Old 07-29-2011, 03:31 PM
Ed W
 
Default busybox config with openrc

On 28/07/2011 07:57, Alon Bar-Lev wrote:
> On Thu, Jul 28, 2011 at 8:06 AM, Mike Frysinger <vapier@gentoo.org> wrote:
>> On Wed, Jul 27, 2011 at 11:36, Alon Bar-Lev wrote:
>>> Of course you need to hack the init configuration, as baselayout won't
>>> work with busybox's init
>>
>> i'm not sure i follow. there's no reason that i know of that you cant
>> configure busybox's init to work fine with openrc. openrc itself
>> doesnt require sysvinit ... just *some* init to execute its soft
>> runlevels.
>> -mike
>
> Right.
> So as far as I know you cannot install baselayout, and need to write
> your own busybox format inittab.
> But I may be wrong.

I'm using Baselayout2 + OpenRc + Uclibc (latest) here with no special
support required.

I am currently using udev, but if you examine the Alpine distribution
you can find a great example on a fully featured mdev installation

I build my basic image using something like:

export ROOT=/some/tmp/dir
export EMERGE_FLAGS="-vk --newuse --quiet-build"

emerge ${EMERGE_FLAGS} baselayout || die "emerge failed"
emerge -t ${EMERGE_FLAGS} uclibc busybox e2fsprogs udev || die
"emerge failed"

A few tweaks on that and you have a bootable image...


Note you want a fairly recent busybox because I made a few feature
requests to support some of the less common command line options, which
of course openrc loves to use...

Good luck

Ed W
 
Old 07-29-2011, 07:11 PM
Mike Frysinger
 
Default busybox config with openrc

On Wed, Jul 27, 2011 at 23:57, Alon Bar-Lev wrote:
> On Thu, Jul 28, 2011 at 8:06 AM, Mike Frysinger wrote:
>> On Wed, Jul 27, 2011 at 11:36, Alon Bar-Lev wrote:
>>> Of course you need to hack the init configuration, as baselayout won't
>>> work with busybox's init
>>
>> i'm not sure i follow. *there's no reason that i know of that you cant
>> configure busybox's init to work fine with openrc. *openrc itself
>> doesnt require sysvinit ... just *some* init to execute its soft
>> runlevels.
>
> Right.
> So as far as I know you cannot install baselayout, and need to write
> your own busybox format inittab.
> But I may be wrong.

i think you might be mixing up baselayout-1 with openrc/baselayout-2.
baselayout-2 should always be installed on Gentoo systems now.
-mike
 

Thread Tools




All times are GMT. The time now is 06:29 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org