Skip to main content
added 12 characters in body
Source Link
Patrick Cook
  • 6.4k
  • 8
  • 38
  • 63

Most systems seem to read the contents of /etc/hostname/etc/hostname and make a call to /bin/hostname/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/etc/hostname file to a new name, and I've renamed /bin/hostname/bin/hostname to /bin/bup/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/bin/bup.hostname.

What is going on here?

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?

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?

Source Link

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?