mirror of
https://github.com/terem42/zfs-hetzner-vm.git
synced 2025-12-23 15:28:33 +00:00
Set correct hostname in /etc/hosts
This commit is contained in:
@@ -588,7 +588,7 @@ echo "======= setting up the network =========="
|
|||||||
echo "$v_hostname" > $c_zfs_mount_dir/etc/hostname
|
echo "$v_hostname" > $c_zfs_mount_dir/etc/hostname
|
||||||
|
|
||||||
cat > "$c_zfs_mount_dir/etc/hosts" <<CONF
|
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
|
127.0.0.1 localhost
|
||||||
|
|
||||||
# The following lines are desirable for IPv6 capable hosts
|
# The following lines are desirable for IPv6 capable hosts
|
||||||
|
|||||||
@@ -553,7 +553,7 @@ echo "======= setting up the network =========="
|
|||||||
echo "$v_hostname" > $c_zfs_mount_dir/etc/hostname
|
echo "$v_hostname" > $c_zfs_mount_dir/etc/hostname
|
||||||
|
|
||||||
cat > "$c_zfs_mount_dir/etc/hosts" <<CONF
|
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
|
127.0.0.1 localhost
|
||||||
|
|
||||||
# The following lines are desirable for IPv6 capable hosts
|
# The following lines are desirable for IPv6 capable hosts
|
||||||
|
|||||||
Reference in New Issue
Block a user