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

Mark Hatle mark.hatle at windriver.com
Fri Sep 7 18:09:47 UTC 2012


On 8/30/12 12:20 PM, Mark Asselstine wrote:
> On August 28, 2012 21:11:47 Burton, Ross wrote:
>> On 28 August 2012 21:01, Mark Asselstine <mark.asselstine at windriver.com>
> wrote:
>>>> 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.
>>
>> There was an implied "and if this isn't the case, a bug should be
>> filed".  I hadn't thought about NFS-root though.
>>
>> Ross
>
> Thanks for your thoughts on this.
>
> Is there anything else I can contribute here?

I found a bug with this patch.  If you are building with the deb packaging then 
the conffiles is set to /etc/hostname, but the file may not always be created... 
this causes a failure condition when generating .deb packages.

i.e.:

-CONFFILES_${PN} = "${sysconfdir}/fstab ${sysconfdir}/hostname"
+CONFFILES_${PN} = "${sysconfdir}/fstab ${@['', 
'${sysconfdir}/hostname'][(d.getVar('hostname', True) != '')]}"


> Mark
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>





More information about the Openembedded-core mailing list