Skip to content

Allow distributions to override the "localhost" fallback#5175

Merged
martinpitt merged 2 commits intosystemd:masterfrom
keszybz:hostname-fallback
Jan 31, 2017
Merged

Allow distributions to override the "localhost" fallback#5175
martinpitt merged 2 commits intosystemd:masterfrom
keszybz:hostname-fallback

Conversation

@keszybz
Copy link
Member

@keszybz keszybz commented Jan 28, 2017

A configure param is added to make this easy to change if distributions want to differentiate on that. The default remains unchanged.

https://bugzilla.redhat.com/show_bug.cgi?id=1392925#c10

No reason to capitalize words which are not names. And "nobody" is
a user name, traditionally lowercase.
…fallback

A configure param is added to make this easy to change if distributions want
to differentiate on that. The default remains unchanged.

https://bugzilla.redhat.com/show_bug.cgi?id=1392925#c10
@martinpitt martinpitt merged commit 70d940e into systemd:master Jan 31, 2017
@keszybz keszybz deleted the hostname-fallback branch January 31, 2017 16:50
@poettering
Copy link
Member

poettering commented Feb 6, 2017

I am not sure what the usecase for this is precisely? However, do note, that at boot we default to "localhost" still if /etc/hostname is not set. See hostname_setup() in hostname-setup.c...

@keszybz are you sure this patch actually does what you want it to do?

@hadess
Copy link
Contributor

hadess commented Feb 6, 2017

I am not sure what the usecase for this is precisely?

Branding, amongst other things. This is a fairly cheap way to change the default hostname, making it more recognisable. For example, you could ssh into a Fedora VM as "root@fedora" rather than anything more complicated.

@poettering
Copy link
Member

@hadess but that's not what this patch is doing. If the hostname is not set (i.e. /etc/hostname missing), we'll still default to "localhost"... That's what I am not grokking here...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

4 participants