nix-config/sh/install/012-hostname
Donovan Glover 4e81aab657
Move installation steps to install directory
This helps separate the installation process from the other scripts that
are usually ran after a reboot, although this may change in the future
if chroot is preferred over executing the commands later.
2018-09-06 15:18:39 -04:00

17 lines
356 B
Bash

#!/bin/sh
#
# Set the hostname in all the necessary places.
#
# Note that if your system has a permanent IP address, that
# should be used instead of 127.0.0.1.
#
# https://wiki.archlinux.org/index.php/Installation_guide
set -xe
$HOSTNAME = "arch"
echo "$HOSTNAME" > /mnt/etc/hostname
echo "127.0.1.1 $HOSTNAME.localdomain $HOSTNAME" >> /mnt/etc/hosts