Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chroot builds should have a (fake) domain name #40

Closed
peti opened this issue Jul 27, 2012 · 2 comments
Closed

chroot builds should have a (fake) domain name #40

peti opened this issue Jul 27, 2012 · 2 comments

Comments

@peti
Copy link
Member

peti commented Jul 27, 2012

Builds that run in a chroot environment have a fake hostname, but they don't have a fake domain name (say, example.org). This causes failures in tools like Git, that try to guess some kind of e-mail address of the local user.

@edolstra
Copy link
Member

Actually having no domain name set is completely normal and is the kernel default. For instance, on my system:

[root@mandark:~]# domainname 
(none)

I don't think NixOS sets the domain name anywhere.

Isn't the Git failure caused by the absence of /etc/resolv.conf?

@peti
Copy link
Member Author

peti commented Jul 28, 2012

I'm not sure. The e-mail address Git ends up constructing is something along the lines of nixbuild@nixbuild.(none). The problem is the "(none)" part, obviously. I'm not sure where it gets that from. Maybe from running hostname --fqdn?

@peti peti closed this as completed Nov 17, 2015
meditans pushed a commit to Ericson2314/nix that referenced this issue Aug 28, 2020
zolodev pushed a commit to zolodev/nix that referenced this issue Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants