[yocto] Set hostname on image?
ChenQi
Qi.Chen at windriver.com
Sun Dec 23 18:23:08 PST 2012
On 12/21/2012 11:04 PM, Jonas Jonsson L wrote:
> Hi!
> This is probably a very stupid question, but I don't understand how to
> set the hostname of the system that I'm building (I'm building a
> 'core-image-minimal'), unless I
> A) write a /etc/hostname file to the image, or
> B) write a script that updates the hostname during startup
> 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?
The hostname.sh script in recipes-core/initscripts will be later
modified to regard the kernel command line parameters. You can then
specify your hostname in kernel command line when booting.
Best Regards,
Chen Qi
> Best regards, Merry Christmas & Happy New Year!
> Jonas
>
>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20121224/180cd5ce/attachment.html>
More information about the yocto
mailing list