[OE-core] Busybox post install

ChenQi Qi.Chen at windriver.com
Thu May 3 02:29:56 UTC 2018


On 05/03/2018 09:20 AM, Michael Gloff wrote:
> I am seeing with the latest in Sumo/Master that the busybox post 
> install is failing to create all of the applet symlinks if there is 
> already a package installed from another provider during do_rootfs. 
> This can be seen, for example, when enabling lsattr applet and having 
> e2fsprogs installed into an image.
>
> The error is:
> update-alternatives: Error: not linking 
> /home/developer/oe-test/build_master/tmp/work/somimx6-emac-linux-gnueabi/emac-image/1.0-r0/rootfs/usr/bin/lsattr 
> to /usr/bin/busybox.nosuid since 
> /home/developer/oe-test/build_master/tmp/work/somimx6-emac-linux-gnueabi/emac-image/1.0-r0/rootfs/usr/bin/lsattr 
> exists and is not a link
>
> In Rocko and before, this error is present, but the script continues 
> creating the rest of the symlinks and exits with success.
>
> Does anyone have any idea why the failure is now causing the script to 
> stop executing?
>
> Michael Gloff
> mgloff at emacinc.com <mailto:mgloff at emacinc.com>
>
>

e2fsprogs deals with 'chattr', you can do the similar for 'lsattr'.
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb:    mv 
${D}${bindir}/chattr ${D}${base_bindir}/chattr.e2fsprogs
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb:ALTERNATIVE_${PN} = 
"chattr"
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb:ALTERNATIVE_LINK_NAME[chattr] 
= "${base_bindir}/chattr"
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb:ALTERNATIVE_TARGET[chattr] 
= "${base_bindir}/chattr.e2fsprogs"

For your question, maybe update-alternatives has been upgraded to view 
such conflict as error? I didn't check.

Best Regards,
Chen Qi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20180503/685a26af/attachment-0002.html>


More information about the Openembedded-core mailing list