Skip to main content
1 of 2

How does Raspbian Jessie set the hostname during system startup?

Most systems seem to read the contents of /etc/hostname and make a call to /bin/hostname during the system startup from an init.d (or similar) script.

Raspbian Jessie appears to have a different way to do this. I've modified the /etc/hostname file to a new name, and I've renamed /bin/hostname to /bin/bup.hostname so that any init scripts will not be able to find it. But the system boots up and uses the new host name, confirmed by running /bin/bup.hostname.

What is going on here?