From: Phil Blundell <philb@gnu.org>
To: openembedded-devel@lists.openembedded.org
Cc: Dirk Nilius <nilius@dresearch-fe.de>
Subject: Re: postinst problem: module vs. update-rc.d
Date: Fri, 14 Oct 2011 15:04:49 +0100 [thread overview]
Message-ID: <1318601090.22985.53.camel@phil-desktop> (raw)
In-Reply-To: <4E984064.3010306@dresearch-fe.de>
On Fri, 2011-10-14 at 16:00 +0200, Steffen Sledz wrote:
> The 'exit 1' leads to an error if $D contains a nonzero length string (what is the case in the OE image creation step at the build host) and suppresses the execution of the second (update-rc.d) part.
>
> Because of this error the postinst is run a second time when the target device boots the first time ("opkg-cl configure" from /etc/rcS.d/S40configure).
>
> The problem is that the update-rc.d execution (and therefor the creation of the new symlink into rcS.d) is done from within rcS itself. So the rcS.d/S90somescript will *not* be executed at this boot. :(
>
> We see two possible solutions.
>
> A) Don't use "inherit module update-rc.d" but write the pkg_postint ourselfs.
>
> B) Create two packages (one for the module, one for the initscript) with a runtime dependency.
>
> I don't like both of them. Any other ideas? Is it possible to force the order of postinst fragments (update-rc.d code before module code)?
I think either update-rc.d or update-rc.d.bbclass should probably invoke
the script as "start" when it installs it for the first time.
p.
next prev parent reply other threads:[~2011-10-14 14:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-14 14:00 postinst problem: module vs. update-rc.d Steffen Sledz
2011-10-14 14:04 ` Phil Blundell [this message]
2011-10-14 14:08 ` Martin Jansa
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=1318601090.22985.53.camel@phil-desktop \
--to=philb@gnu.org \
--cc=nilius@dresearch-fe.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.