Skip to content

Conversation

@luciusbono
Copy link
Contributor

@luciusbono luciusbono commented Dec 15, 2017

Per #51 - Hostname is a bit of a misnomer, since we're not actually setting the hostname anywhere. A more accurate feature description would be "Set ComputerName and LocalHostName" but that's annoying.

We added the set-computername.sh script early in the build so that software like Crashplan will have access to the correct hostname, in case it matters.

Build has been tested in a development branch, ready to push to master.


scutil --set LocalHostName $hostname
scutil --set ComputerName $hostname
dscacheutil -flushcache
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can leave out the dscacheutil command.

luciusbono and others added 3 commits December 15, 2017 12:39
@tristanthomas noticed that I was using dscacheutil to flush DNS, but that's not really necessary in this case since we're not actually setting the hostname and we reboot at the end of the build. +1, we shouldn't have stuff we know is unnecessary in the build.
@tristanthomas tristanthomas merged commit 472ecd0 into master Dec 15, 2017
@luciusbono luciusbono mentioned this pull request Dec 18, 2017
@luciusbono luciusbono deleted the feat-sethostname branch December 19, 2017 20:10
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

Successfully merging this pull request may close these issues.

3 participants