Skip to contentSkip to conversation

S98configure role

DISCUSSION [email protected] 1 participant 1 message Oct 14, 2010

lore
Share & tools
lore
#0 lore raw

Thank you Chris et al. for your reply.
Even if I told you in my last
mail I had no chanche to investigate further, I took some time to burn some SD and tried to understand the topic.
Well, in my build machine, 4
packages remain unpacked:
openssh-sshd
net-snmp-server
udev
update-
modules

But, since openssh-sshd and update-modules are intentionally left unpacked (if test "x$D" != "x"; then exit 1 - in the .postinst script), it seems that for udev and net-snmp-server something goes wrong.
Looking in depth, I saw that in udev_141.bb, inside pkg_postinst_udev_append(), the usual test
if test "x$D" != "x"; then

        OPT="-r $D"
else
        OPT="-s"

fi
isn't written before
update-rc.d command:
update-rc.d $OPT udev-cache start 12 S .
Simply,
this piece of code is not available.
Result: update.rc.d fails in the
build machine because OPT is empty.
Then we have not S03udev and
S12udev-cache init links and S98configure can repair the situation but only from 2nd boot on.
To solve the problem I had to add that usual
test inside pkg_postinst_udev_append() in udev_141.bb, then bitbake udev again.

Similar thing happens for net-snmp-server, where the postinst script has the same piece of code written twice, resulting in an error and then in the flag unpacked for the package. Commenting out
the first occurrance I got good results.

Here net-snmp configuration
by means of S98configure is less dramatical because net-snmp agent starts after S98configure and then everything is fine also in 1st boot.

I hope this investigation could help someone involved in the same problems,
bye,
Luca

----Messaggio originale----
Da: clarson@kergoth.
com
Data: 14/10/2010 16.01
A: <[email protected].
org>
Ogg: Re: [oe] S98configure role

Quoted 1 line · On Thu, Oct 14, 2010 at 2:32 AM, [email protected] <…

I'm

wondering what is the role of this script, placed in /etc/rcS.d.

Quoted 2 lines

What I guess is that, for some reasons, some packages get installed but

Quoted 4 lines

not configured (then unpacked) since their postinstall script returns

non zero value.

Yes, this is correct. Some postinsts do things
which can be done at image
creation time on the build machine, but not
all. Those which must *run* the
binaries in the filesystem, for
example, cannot be run at build time, so
must be run at first boot time
on the target.

Signature · 20 lines
Christopher Larson
clarson at kergoth dot com

Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior 
Software Engineer, Mentor Graphics

_______________________________________________
Openembedded-devel 
mailing list
[email protected]
http://lists.
linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel





Supera i limiti: raddoppia la velocità da 10 a 20 Mega!   Risparmia con Tutto Incluso: telefono + adsl 20 mega a soli 26,60 € al mese per un anno!  SCONTO DI 160 EURO!  http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/tuttoincluso/?WT.mc_id=01fw