diff --git a/hetzner-debian10-zfs-setup.sh b/hetzner-debian10-zfs-setup.sh index d6e4ff1..3f13c4b 100644 --- a/hetzner-debian10-zfs-setup.sh +++ b/hetzner-debian10-zfs-setup.sh @@ -719,6 +719,12 @@ if [[ $v_zfs_experimental == "1" ]]; then else chroot_execute "apt install --yes -t buster-backports zfs-initramfs zfs-dkms zfsutils-linux" fi +chroot_execute 'cat << DKMS > /etc/dkms/zfs.conf +# override for /usr/src/zfs-*/dkms.conf: +# always rebuild initrd when zfs module has been changed +# (either by a ZFS update or a new kernel version) +REMAKE_INITRD='yes' +DKMS' echo "======= installing OpenSSH and network tooling ==========" chroot_execute "apt install --yes openssh-server net-tools" diff --git a/hetzner-debian11-zfs-setup.sh b/hetzner-debian11-zfs-setup.sh index 85840cf..a914f32 100644 --- a/hetzner-debian11-zfs-setup.sh +++ b/hetzner-debian11-zfs-setup.sh @@ -720,6 +720,12 @@ if [[ $v_zfs_experimental == "1" ]]; then else chroot_execute "apt install --yes zfs-initramfs zfs-dkms zfsutils-linux" fi +chroot_execute 'cat << DKMS > /etc/dkms/zfs.conf +# override for /usr/src/zfs-*/dkms.conf: +# always rebuild initrd when zfs module has been changed +# (either by a ZFS update or a new kernel version) +REMAKE_INITRD='yes' +DKMS' echo "======= installing OpenSSH and network tooling ==========" chroot_execute "apt install --yes openssh-server net-tools" diff --git a/hetzner-ubuntu18-zfs-setup.sh b/hetzner-ubuntu18-zfs-setup.sh index 3fb10a1..54d7190 100644 --- a/hetzner-ubuntu18-zfs-setup.sh +++ b/hetzner-ubuntu18-zfs-setup.sh @@ -702,6 +702,12 @@ else chroot_execute "add-apt-repository --yes ppa:jonathonf/zfs" chroot_execute "apt install --yes zfs-initramfs zfs-dkms zfsutils-linux" fi +chroot_execute 'cat << DKMS > /etc/dkms/zfs.conf +# override for /usr/src/zfs-*/dkms.conf: +# always rebuild initrd when zfs module has been changed +# (either by a ZFS update or a new kernel version) +REMAKE_INITRD='yes' +DKMS' echo "======= installing OpenSSH and network tooling ==========" chroot_execute "apt install --yes openssh-server net-tools" diff --git a/hetzner-ubuntu20-zfs-setup.sh b/hetzner-ubuntu20-zfs-setup.sh index 8b978df..a52e80e 100644 --- a/hetzner-ubuntu20-zfs-setup.sh +++ b/hetzner-ubuntu20-zfs-setup.sh @@ -703,6 +703,12 @@ else chroot_execute "add-apt-repository --yes ppa:jonathonf/zfs" chroot_execute "apt install --yes zfs-initramfs zfs-dkms zfsutils-linux" fi +chroot_execute 'cat << DKMS > /etc/dkms/zfs.conf +# override for /usr/src/zfs-*/dkms.conf: +# always rebuild initrd when zfs module has been changed +# (either by a ZFS update or a new kernel version) +REMAKE_INITRD='yes' +DKMS' echo "======= installing OpenSSH and network tooling ==========" chroot_execute "apt install --yes openssh-server net-tools"