Merge pull request #1 from digineo/hostname

Set correct hostname in /etc/hosts
This commit is contained in:
Andrey Prokopenko
2020-03-09 19:12:54 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -588,7 +588,7 @@ echo "======= setting up the network =========="
echo "$v_hostname" > $c_zfs_mount_dir/etc/hostname
cat > "$c_zfs_mount_dir/etc/hosts" <<CONF
127.0.1.1 terem terem
127.0.1.1 ${v_hostname}
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts

View File

@@ -553,7 +553,7 @@ echo "======= setting up the network =========="
echo "$v_hostname" > $c_zfs_mount_dir/etc/hostname
cat > "$c_zfs_mount_dir/etc/hosts" <<CONF
127.0.1.1 terem terem
127.0.1.1 ${v_hostname}
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts