mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-12 18:01:23 +01:00
4e81aab657
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.
17 lines
356 B
Bash
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
|
|
|