[OE-core] [PATCH] busybox.inc: have the busybox-syslog postinstall run on host

Laurentiu Palcu laurentiu.palcu at intel.com
Tue Jan 15 14:05:36 UTC 2013



On 01/15/2013 02:24 PM, Martin Jansa wrote:
>> This is a valid concern. It would certainly start them both or, at
>> > least, try. But, is it normal for one to have two different syslog
>> > implementations installed? Is this a valid use case?
> That's why we're using u-a for init script, isn't it?
>
I guess you're right. I'll have to find another solution. Most likely,
change update-rc.d script so that it gets the file the link points to,
append the rootfs path to it and then check for the actual file's
existence before reporting an error.

> Imho the problem is only order of postinst where update-rc.d is executed
> before u-a postinst.
No, the problem is not on target. The problem is when the postinst is
run on host. Basically, update-rc.d will run on a file that points to a
path on target:

/path/to/target/rootfs/syslog -> /etc/init.d/syslog.busybox

On host, this link is invalid and update-rc.d will exit with error.
Hence, the postinst will be postponed.

Thanks,
Laurentiu

>
> Cheers,
>




More information about the Openembedded-core mailing list