Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: "l.bolognini@tiscali.it" <l.bolognini@tiscali.it>
To: <openembedded-devel@lists.openembedded.org>
Subject: Re: S98configure role
Date: Thu, 14 Oct 2010 16:45:22 +0200 (CEST)	[thread overview]
Message-ID: <10213762.146341287067522122.JavaMail.defaultUser@defaultHost> (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: <openembedded-devel@lists.openembedded.
org>
Ogg: Re: [oe] S98configure role

On Thu, Oct 14, 2010 at 2:32 AM, 
l.bolognini@tiscali.it <
l.bolognini@tiscali.it> wrote:

> I'm 
wondering what is the role of this script, placed in /etc/rcS.d.
>
> 
What I guess is that, for some reasons, some packages get installed but

> 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.
-- 
Christopher Larson
clarson at kergoth dot com

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

_______________________________________________
Openembedded-devel 
mailing list
Openembedded-devel@lists.openembedded.org
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



             reply	other threads:[~2010-10-14 14:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-14 14:45 l.bolognini [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-10-14  9:32 S98configure role l.bolognini
2010-10-14 14:01 ` Chris Larson
2010-10-14 14:33   ` Hauser, Wolfgang (external)
2010-10-14 14:36     ` Chris Larson
2010-10-14 14:47       ` Hauser, Wolfgang (external)

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=10213762.146341287067522122.JavaMail.defaultUser@defaultHost \
    --to=l.bolognini@tiscali.it \
    --cc=openembedded-devel@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox