* [gentoo-embedded] busybox config with openrc
@ 2011-07-27 18:12 Kfir Lavi
2011-07-27 18:36 ` Alon Bar-Lev
0 siblings, 1 reply; 6+ messages in thread
From: Kfir Lavi @ 2011-07-27 18:12 UTC (permalink / raw
To: gentoo-embedded
[-- Attachment #1: Type: text/plain, Size: 573 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 678 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-embedded] busybox config with openrc
2011-07-27 18:12 [gentoo-embedded] busybox config with openrc Kfir Lavi
@ 2011-07-27 18:36 ` Alon Bar-Lev
2011-07-28 5:06 ` Mike Frysinger
0 siblings, 1 reply; 6+ messages in thread
From: Alon Bar-Lev @ 2011-07-27 18:36 UTC (permalink / raw
To: gentoo-embedded
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-embedded] busybox config with openrc
2011-07-27 18:36 ` Alon Bar-Lev
@ 2011-07-28 5:06 ` Mike Frysinger
2011-07-28 6:57 ` Alon Bar-Lev
0 siblings, 1 reply; 6+ messages in thread
From: Mike Frysinger @ 2011-07-28 5:06 UTC (permalink / raw
To: gentoo-embedded
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-embedded] busybox config with openrc
2011-07-28 5:06 ` Mike Frysinger
@ 2011-07-28 6:57 ` Alon Bar-Lev
2011-07-29 15:31 ` Ed W
2011-07-29 19:11 ` Mike Frysinger
0 siblings, 2 replies; 6+ messages in thread
From: Alon Bar-Lev @ 2011-07-28 6:57 UTC (permalink / raw
To: gentoo-embedded
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-embedded] busybox config with openrc
2011-07-28 6:57 ` Alon Bar-Lev
@ 2011-07-29 15:31 ` Ed W
2011-07-29 19:11 ` Mike Frysinger
1 sibling, 0 replies; 6+ messages in thread
From: Ed W @ 2011-07-29 15:31 UTC (permalink / raw
To: gentoo-embedded
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-embedded] busybox config with openrc
2011-07-28 6:57 ` Alon Bar-Lev
2011-07-29 15:31 ` Ed W
@ 2011-07-29 19:11 ` Mike Frysinger
1 sibling, 0 replies; 6+ messages in thread
From: Mike Frysinger @ 2011-07-29 19:11 UTC (permalink / raw
To: gentoo-embedded
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-07-29 19:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-27 18:12 [gentoo-embedded] busybox config with openrc Kfir Lavi
2011-07-27 18:36 ` Alon Bar-Lev
2011-07-28 5:06 ` Mike Frysinger
2011-07-28 6:57 ` Alon Bar-Lev
2011-07-29 15:31 ` Ed W
2011-07-29 19:11 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox