A quick question on setting the hostname

Thomas Neumann blacky+fai at fluffbunny.de
Thu Mar 11 12:46:41 CET 2010


hiya

> You can write a hook that sets the hostname. Use this code snippet

> HOSTNAME=youname
> hostname $HOSTNAME

And if you execute
  echo ${HOSTNAME} > /proc/sys/kernel/hostname
  echo ${DOMAIN} > /proc/sys/kernel/domainname
then the new hostname is already usable during install.

(It's part of my prepareapt hook.)

tschüß
thomas



More information about the linux-fai mailing list