base-files: any reason hosts contains localhost.localdomain
Currently the hosts file (meta/recipes-core/base-files/base-files/hosts) contains the entry:
127.0.0.1 localhost.localdomain localhost
This seems to be based on Debian, however it seems they've long since reverted the entry to just "localhost".
https://salsa.debian.org/installer-team/netcfg/-/commit/3c15ee521b2b8f47b34ccc7f610523cd284f2221
I came across this issue as a call to java.net.InetAddress.getHostName() returned localhost.localdomain which wasn't the expected value.
Because of this I was wondering what/if there is a reason we still have it included as it is?
Sincerely,
Jermain Horsman
Quoted 10 lines · Jermain Horsman
Currently the hosts file (meta/recipes-core/base-files/base-files/hosts) contains the entry:
127.0.0.1 localhost.localdomain localhostThis seems to be based on Debian, however it seems they've long since reverted the entry to just "localhost".
https://salsa.debian.org/installer-team/netcfg/-/commit/3c15ee521b2b8f47b34ccc7f610523cd284f2221
I came across this issue as a call to
java.net.InetAddress.getHostName()returned localhost.localdomain which wasn't the expected value.Because of this I was wondering what/if there is a reason we still have it included as it is?
I think you're right and we should drop it. I'll propose a patch which we can test.
Cheers,
Richard
Would it be appropriate to backport this to dunfell too?
If so, should I send in a patch? I'm not entirely sure what the general process is in these cases.
Sincerely,
Jermain Horsman
Quoted 5 lines · Jermain Horsman
Would it be appropriate to backport this to dunfell too?
If so, should I send in a patch? I'm not entirely sure what the general process is in these cases.
The correct procedure would be to send a patch to the mailing list for review. If there are no objections I'll add it to my test queue and see if any issues emerge on the autobuilder.
Steve
Quoted 11 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#178481):
https://lists.openembedded.org/g/openembedded-core/message/178481
Mute This Topic: https://lists.openembedded.org/mt/97522170/3620601
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-