[yocto] Set hostname on image?

Tomas Frydrych tf+lists.yocto at r-finger.com
Fri Dec 21 07:44:54 PST 2012


On 21/12/12 15:04, Jonas Jonsson L wrote:
> The installed (/etc/hostname) file is created & installed in the
> base-files recipe, but I don't understand how to set/use the
> hostname-variable in that recipe so that it becomes what I want it to be
> (unless I start editing that recipe ....).
>  
> Is there a way to modify the hostname from my 'local.conf' file?

You will not be able to override it in local.conf because the 'hostname'
variable in the recipe is not weakly assigned. But you should be able to
override it in a base-files.bbappend.

Tomas



More information about the yocto mailing list