From 3826932a796812fc1c43b60189bc9de1ab458c92 Mon Sep 17 00:00:00 2001 From: Christopher Bock Date: Mon, 13 Jun 2022 05:51:33 +0200 Subject: [PATCH] dkms: force rebuild terem42/zfs-hetzner-vm#28 --- hetzner-debian10-zfs-setup.sh | 6 ++++++ hetzner-debian11-zfs-setup.sh | 6 ++++++ hetzner-ubuntu18-zfs-setup.sh | 6 ++++++ hetzner-ubuntu20-zfs-setup.sh | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/hetzner-debian10-zfs-setup.sh b/hetzner-debian10-zfs-setup.sh index b7f9fe2..85ad413 100644 --- a/hetzner-debian10-zfs-setup.sh +++ b/hetzner-debian10-zfs-setup.sh @@ -718,6 +718,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 d047ae6..d835c1b 100644 --- a/hetzner-debian11-zfs-setup.sh +++ b/hetzner-debian11-zfs-setup.sh @@ -719,6 +719,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 2a241da..f164ed6 100644 --- a/hetzner-ubuntu18-zfs-setup.sh +++ b/hetzner-ubuntu18-zfs-setup.sh @@ -701,6 +701,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 242d7a2..61ec26f 100644 --- a/hetzner-ubuntu20-zfs-setup.sh +++ b/hetzner-ubuntu20-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"