7.9. Configuring the system hostname

During the boot process, both Systemd and System V use the same file for establishing the system's hostname. This needs to be configured by creating /etc/hostname.

Create the /etc/hostname file and enter a hostname by running:

echo "<lfs>" > /etc/hostname

<lfs> needs to be replaced with the name given to the computer. Do not enter the Fully Qualified Domain Name (FQDN) here. That information is put in the /etc/hosts file.