Proper Way of Creating Symbolic Links

Javi Roman javiroman at kernel-labs.org
Tue Sep 9 18:32:59 UTC 2008


On Tue, Sep 9, 2008 at 7:57 PM, Caglar Akyuz <caglarakyuz at gmail.com> wrote:
> Hi,
>
> In short:
>
> What is the proper way of creating symbolic links in a recipe?
>
> In detail:
>
> Actually I want some links in my final image, but I couldn't
> achieve install_prepend running for my images.


In your bb file you can use something like this:

pkg_postinst() {
        #!/bin/sh
        # post installation script

        ln -s /usr/local/bin/file /usr/bin/file
}


-- 
Javi Roman




More information about the Openembedded-users mailing list