From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailgw2.ericsson.se (mailgw2.ericsson.se [193.180.251.37]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 4398BE006C3 for ; Fri, 21 Dec 2012 07:04:49 -0800 (PST) X-AuditID: c1b4fb25-b7fb26d000006129-88-50d47a8f541f Received: from ESESSHC004.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw2.ericsson.se (Symantec Mail Security) with SMTP id 7E.A7.24873.F8A74D05; Fri, 21 Dec 2012 16:04:47 +0100 (CET) Received: from ESESSMB305.ericsson.se ([169.254.5.172]) by ESESSHC004.ericsson.se ([153.88.183.30]) with mapi id 14.02.0318.004; Fri, 21 Dec 2012 16:04:46 +0100 From: Jonas Jonsson L To: "Yocto Mailinglist (yocto@yoctoproject.org)" Thread-Topic: Set hostname on image? Thread-Index: Ac3fjINpJpa8CkFEQHeNRUFSHRmsZQ== Date: Fri, 21 Dec 2012 15:04:46 +0000 Message-ID: <0342A6AD36648742A199353A51DDC703114FF6A1@ESESSMB305.ericsson.se> Accept-Language: sv-SE, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [153.88.183.18] MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKLMWRmVeSWpSXmKPExsUyM+JvjW5/1ZUAgyt7ZSwmvVzD5sDo0X6i jy2AMYrLJiU1J7MstUjfLoEr49/yTYwF24QrLs2Xa2DcK9DFyMkhIWAisfz9fXYIW0ziwr31 bF2MXBxCAocYJTrm3oRyljBKHOubCFbFBtQxYeVNxi5GDg4RAU+JKw90QcLCAvISGyedZwWx RQRUJJ5PbmGGsPUk3p26xQRiswioSmxp38gCYvMK+EqsPt3IBmIzCshK3P9+DyzOLCAucevJ fCaIgwQkluw5zwxhi0q8fPyPFcJWlPj4ah8jRH2+RMfKY2wQMwUlTs58wjKBUWgWklGzkJTN QlIGEdeRWLD7ExuErS2xbOFrZhj7zIHHTMjiCxjZVzGy5yZm5qSXG21iBAb9wS2/VXcw3jkn cohRmoNFSZw33PVCgJBAemJJanZqakFqUXxRaU5q8SFGJg5OqQZGfQELftbnmWELzfpT29W4 kiV33GTb8UEraWZv140FPSGujCHZR0RV1jCUXr/NElN5UWLxZvncWUEBujplHD/Dt6g6xbNI 79BoUilbvIbnFzfDJ9mfmede/0lnsQ1Od3DaoX9g8ZsPEyMeflTWnmrTVLFWWl3w8KuLzjfb 4jStNx6pF1R6e0qJpTgj0VCLuag4EQB93fvpSAIAAA== Subject: Set hostname on image? X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Dec 2012 15:04:50 -0000 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_0342A6AD36648742A199353A51DDC703114FF6A1ESESSMB305erics_" --_000_0342A6AD36648742A199353A51DDC703114FF6A1ESESSMB305erics_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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-mi= nimal'), 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 tha= t recipe so that it becomes what I want it to be (unless I start editing th= at recipe ....). Is there a way to modify the hostname from my 'local.conf' file? Best regards, Merry Christmas & Happy New Year! Jonas --_000_0342A6AD36648742A199353A51DDC703114FF6A1ESESSMB305erics_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
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-ima= ge-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 b= ase-files recipe, but I don't understand how to set/use the hostname-variab= le in that recipe so that it becomes what I want it to be (unless I start e= diting that recipe ....).
 
Is there a way to modify the hostname from my 'local.conf' file?
 
Best regards, Merry Christmas & Happy New Year!
 
Jonas
 
 
--_000_0342A6AD36648742A199353A51DDC703114FF6A1ESESSMB305erics_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from r-finger.com (r-finger.com [178.79.160.5]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 84D6DE006C3 for ; Fri, 21 Dec 2012 07:44:57 -0800 (PST) Received: from [192.168.0.2] (host86-137-82-70.range86-137.btcentralplus.com [86.137.82.70]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by r-finger.com (Postfix) with ESMTPSA id 30C899BF8 for ; Fri, 21 Dec 2012 15:44:55 +0000 (GMT) Message-ID: <50D483F6.7070002@r-finger.com> Date: Fri, 21 Dec 2012 15:44:54 +0000 From: Tomas Frydrych User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120624 Icedove/10.0.5 MIME-Version: 1.0 To: yocto@yoctoproject.org References: <0342A6AD36648742A199353A51DDC703114FF6A1@ESESSMB305.ericsson.se> In-Reply-To: <0342A6AD36648742A199353A51DDC703114FF6A1@ESESSMB305.ericsson.se> Subject: Re: Set hostname on image? X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Dec 2012 15:44:57 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2F165E00726 for ; Sun, 23 Dec 2012 18:22:41 -0800 (PST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.14.5/8.14.3) with ESMTP id qBO2MeDn014648 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Sun, 23 Dec 2012 18:22:40 -0800 (PST) Received: from [128.224.163.154] (128.224.163.154) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.2.318.4; Sun, 23 Dec 2012 18:22:40 -0800 Message-ID: <50D7BC8C.70708@windriver.com> Date: Mon, 24 Dec 2012 10:23:08 +0800 From: ChenQi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 To: References: <0342A6AD36648742A199353A51DDC703114FF6A1@ESESSMB305.ericsson.se> In-Reply-To: <0342A6AD36648742A199353A51DDC703114FF6A1@ESESSMB305.ericsson.se> X-Originating-IP: [128.224.163.154] Subject: Re: Set hostname on image? X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Dec 2012 02:22:41 -0000 Content-Type: multipart/alternative; boundary="------------060901010303090702020508" --------------060901010303090702020508 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit 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 --------------060901010303090702020508 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit 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

--------------060901010303090702020508--