[OE-core] [PATCH] base-files: Allow setting hostname through DISTRO_HOSTNAME

Sören Brinkmann soren.brinkmann at xilinx.com
Tue Sep 16 18:15:00 UTC 2014


On Mon, 2014-09-15 at 07:20AM -0400, Philip Balister wrote:
> On 09/14/2014 06:30 PM, Burton, Ross wrote:
> > On 11 September 2014 21:33, Soren Brinkmann <soren.brinkmann at xilinx.com> wrote:
> >> Add a distro variable to set the hostname. This allows easily assigning
> >> a hostname in local.conf.
> > 
> > It's already as easy as assigning a hostname in local.conf:
> > 
> > hostname_pn-base-files = "cuteembeddedhack"
> > 
> > Also your patch doesn't add a distro-level variable, it just adds
> > another package-level variable.
> > 
> > Patches like this tend to appear every 18 months or so, clearly we
> > need to ensure this is documented.

Apparently not often enough to make Google show this solution :P

> 
> We should change this line in the bb file:
> 
> # set standard hostname, might be a candidate for a DISTRO variable? :M:
> 
> to let people know how to override from local.conf.

Good idea. That was leading into the wrong direction.

	Thanks,
	Sören



More information about the Openembedded-core mailing list