From 30487841a4370ca02adce8df4cf78a133308f2c3 Mon Sep 17 00:00:00 2001 From: terem42 <9478806+terem42@users.noreply.github.com> Date: Thu, 5 Oct 2023 14:23:25 +0200 Subject: [PATCH] updated wih testing --- hetzner-debian10-zfs-setup.sh | 2 +- hetzner-debian11-zfs-setup.sh | 2 +- hetzner-debian12-zfs-setup.sh | 2 +- hetzner-ubuntu18-zfs-setup.sh | 4 ++-- hetzner-ubuntu20-zfs-setup.sh | 2 +- hetzner-ubuntu22-zfs-setup.sh | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hetzner-debian10-zfs-setup.sh b/hetzner-debian10-zfs-setup.sh index cc18e2e..9590c0a 100644 --- a/hetzner-debian10-zfs-setup.sh +++ b/hetzner-debian10-zfs-setup.sh @@ -624,7 +624,7 @@ ff02::2 ip6-allrouters ff02::3 ip6-allhosts CONF -ip6addr_prefix=$(ip -6 a s | grep -E "inet6.+global" | sed -nE 's/.+inet6\s(([0-9a-z]{1,4}:){4,4}).+/\1/p') +ip6addr_prefix=$(ip -6 a s | grep -E "inet6.+global" | sed -nE 's/.+inet6\s(([0-9a-z]{1,4}:){4,4}).+/\1/p' | head -n 1) cat < /mnt/etc/systemd/network/10-eth0.network [Match] diff --git a/hetzner-debian11-zfs-setup.sh b/hetzner-debian11-zfs-setup.sh index 6bfedd6..cb19010 100644 --- a/hetzner-debian11-zfs-setup.sh +++ b/hetzner-debian11-zfs-setup.sh @@ -625,7 +625,7 @@ ff02::2 ip6-allrouters ff02::3 ip6-allhosts CONF -ip6addr_prefix=$(ip -6 a s | grep -E "inet6.+global" | sed -nE 's/.+inet6\s(([0-9a-z]{1,4}:){4,4}).+/\1/p') +ip6addr_prefix=$(ip -6 a s | grep -E "inet6.+global" | sed -nE 's/.+inet6\s(([0-9a-z]{1,4}:){4,4}).+/\1/p' | head -n 1) cat < /mnt/etc/systemd/network/10-eth0.network [Match] diff --git a/hetzner-debian12-zfs-setup.sh b/hetzner-debian12-zfs-setup.sh index ee18ece..2d5b3b9 100644 --- a/hetzner-debian12-zfs-setup.sh +++ b/hetzner-debian12-zfs-setup.sh @@ -628,7 +628,7 @@ ff02::2 ip6-allrouters ff02::3 ip6-allhosts CONF -ip6addr_prefix=$(ip -6 a s | grep -E "inet6.+global" | sed -nE 's/.+inet6\s(([0-9a-z]{1,4}:){4,4}).+/\1/p') +ip6addr_prefix=$(ip -6 a s | grep -E "inet6.+global" | sed -nE 's/.+inet6\s(([0-9a-z]{1,4}:){4,4}).+/\1/p' | head -n 1) cat < /mnt/etc/systemd/network/10-eth0.network [Match] diff --git a/hetzner-ubuntu18-zfs-setup.sh b/hetzner-ubuntu18-zfs-setup.sh index a415408..57b7a34 100644 --- a/hetzner-ubuntu18-zfs-setup.sh +++ b/hetzner-ubuntu18-zfs-setup.sh @@ -592,7 +592,7 @@ ff02::2 ip6-allrouters ff02::3 ip6-allhosts CONF -ip6addr_prefix=$(ip -6 a s | grep -E "inet6.+global" | sed -nE 's/.+inet6\s(([0-9a-z]{1,4}:){4,4}).+/\1/p') +ip6addr_prefix=$(ip -6 a s | grep -E "inet6.+global" | sed -nE 's/.+inet6\s(([0-9a-z]{1,4}:){4,4}).+/\1/p' | head -n 1) cat < /mnt/etc/systemd/network/10-eth0.network [Match] @@ -607,7 +607,7 @@ CONF chroot_execute "systemctl enable systemd-networkd.service" chroot_execute "systemctl enable systemd-resolved.service" -cp /etc/resolv.conf $c_zfs_mount_dir/etc/resolv.conf +#cp /etc/resolv.conf $c_zfs_mount_dir/etc/resolv.conf mkdir -p "$c_zfs_mount_dir/etc/cloud/cloud.cfg.d/" cat > "$c_zfs_mount_dir/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg" < /mnt/etc/systemd/network/10-eth0.network [Match] diff --git a/hetzner-ubuntu22-zfs-setup.sh b/hetzner-ubuntu22-zfs-setup.sh index a96ecb3..d04dd09 100644 --- a/hetzner-ubuntu22-zfs-setup.sh +++ b/hetzner-ubuntu22-zfs-setup.sh @@ -593,7 +593,7 @@ ff02::2 ip6-allrouters ff02::3 ip6-allhosts CONF -ip6addr_prefix=$(ip -6 a s | grep -E "inet6.+global" | sed -nE 's/.+inet6\s(([0-9a-z]{1,4}:){4,4}).+/\1/p') +ip6addr_prefix=$(ip -6 a s | grep -E "inet6.+global" | sed -nE 's/.+inet6\s(([0-9a-z]{1,4}:){4,4}).+/\1/p' | head -n 1) cat < /mnt/etc/systemd/network/10-eth0.network [Match]