[OE-core] [PATCH V2] base-files: provide a mechanism to skip creation of the hostname file

Mark Asselstine mark.asselstine at windriver.com
Tue Aug 28 20:01:07 UTC 2012


On August 28, 2012 20:16:30 Burton, Ross wrote:
> On 28 August 2012 19:53, Mark Asselstine <mark.asselstine at windriver.com> 
wrote:
> > hostname.sh doesn't leave much room for priority
> > 
> > ---snip---
> > if test -f /etc/hostname
> > then
> > 
> >         hostname -F /etc/hostname
> > 
> > fi
> > ---snip---
> > 
> > looking at this you can see my logic, don't create the /etc/hostname file
> > get rid of the overwrite.
> 
> But surely this should be running very early in the boot, and a
> DHCP-assigned name should be running afterwards?

That hasn't been what I have observed, and doesn't cover the command line 
case. If you have an NFS root this would also not be the case as init will be 
run after the network is setup and root mounted.

Mark



> 
> Ross




More information about the Openembedded-core mailing list