[oe] All the syslogs
Martin Jansa
martin.jansa at gmail.com
Fri May 7 13:08:51 UTC 2010
On Fri, May 07, 2010 at 03:02:16PM +0200, Steffen Sledz wrote:
> Am 07.05.2010 13:09, schrieb Martin Jansa:
> >> When opkg installs the packages it wants to run update-rc.d *before*
> >> update-alternatives. This results in an "file does not exist" error. :(
> >>
> >> Installing rsyslog (5.5.4-r1.0.5) to root...
> >> Installing busybox-syslog (1.13.2-r24.1.5) to root...
> >> Configuring rsyslog
> >> update-rc.d: /etc/init.d/syslog: file does not exist
> >> update-alternatives: Linking //etc/init.d/syslog to syslog.rsyslog
> >> Any suggestions?
> >
> > If there is only one u-a file in recipe you can try
> > inherit update-alternatives to see if it will generate postinst commands
> > in right order.
>
> Sorry, sometimes more than one.
Yeah sort of expected that :/.
> > Or in worse case, move update-rc.d logic to your postinst scripts after
> > setting u-a links.
>
> Would be a
>
> touch {sysconfdir}/init.d/syslog
:) also option, but u-a should at least show warning that link file is
not and link and in worse scenario refuse to replace non-link file with
link to alternative (IIRC the case for u-a-cworth and his variant
included in opkg).
What I had in mind was adding:
update-rc.d $OPT ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS}
after u-a call in postinst and similar
update-rc.d $OPT ${INITSCRIPT_NAME} remove
in postrm, etc.
Regards,
--
uin:136542059 jid:Martin.Jansa at gmail.com
Jansa Martin sip:jamasip at voip.wengo.fr
JaMa
More information about the Openembedded-devel
mailing list