From: ChenQi <Qi.Chen@windriver.com>
To: <yocto@yoctoproject.org>
Subject: Re: Set hostname on image?
Date: Mon, 24 Dec 2012 10:23:08 +0800 [thread overview]
Message-ID: <50D7BC8C.70708@windriver.com> (raw)
In-Reply-To: <0342A6AD36648742A199353A51DDC703114FF6A1@ESESSMB305.ericsson.se>
[-- Attachment #1: Type: text/plain, Size: 1110 bytes --]
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@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
[-- Attachment #2: Type: text/html, Size: 2923 bytes --]
prev parent reply other threads:[~2012-12-24 2:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-21 15:04 Set hostname on image? Jonas Jonsson L
2012-12-21 15:44 ` Tomas Frydrych
2012-12-24 2:23 ` ChenQi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50D7BC8C.70708@windriver.com \
--to=qi.chen@windriver.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.