How to add alias to yocto image [ANSWERED]

Moderators: Oren.R, Eran.M

ingeln991
Posts: 15
Joined: Thu Apr 27, 2017 6:05 pm

How to add alias to yocto image [ANSWERED]

Postby ingeln991 » Mon May 15, 2017 8:58 am

Hello everyone !

I need to build an image of an os where there are alias commands.

e.g. i have to do something like this :

alias newLs='ls -l'

what is the file where i can add the alias to build the iamge correctly ?

Thanks for helpi'n !

Eran.M
Posts: 140
Joined: Tue Jan 26, 2016 10:49 am

Re: How to add alias to yocto image

Postby Eran.M » Tue May 16, 2017 3:36 pm

You can add the alias line to /home/root/.profile of your target's rootfs.

ingeln991
Posts: 15
Joined: Thu Apr 27, 2017 6:05 pm

Re: How to add alias to yocto image

Postby ingeln991 » Tue May 16, 2017 8:16 pm

Hi !

In this way can i use the alias with every image that i'll build ?

Eran.M
Posts: 140
Joined: Tue Jan 26, 2016 10:49 am

Re: How to add alias to yocto image

Postby Eran.M » Sun May 28, 2017 8:54 am

Hi.
Please see the following Wiki section I've added:
http://variwiki.com/index.php?title=VAR ... the_rootfs

Regards,
Eran


Return to “Yocto”

Who is online

Users browsing this forum: No registered users and 3 guests