diff --git a/hetzner-debian10-zfs-setup.sh b/hetzner-debian10-zfs-setup.sh index adc692c..a175049 100644 --- a/hetzner-debian10-zfs-setup.sh +++ b/hetzner-debian10-zfs-setup.sh @@ -769,6 +769,8 @@ if [[ $v_encrypt_rpool == "1" ]]; then echo "=========set up dropbear==============" chroot_execute "apt install --yes dropbear-initramfs" + chroot_execute "apt purge cryptsetup-initramfs --yes" + mkdir -p "$c_zfs_mount_dir/etc/dropbear-initramfs" cp /root/.ssh/authorized_keys "$c_zfs_mount_dir/etc/dropbear-initramfs/authorized_keys" @@ -796,7 +798,6 @@ CONF echo "========running packages upgrade===========" chroot_execute "apt upgrade --yes" -chroot_execute "apt autoremove --yes" echo "===========add static route to initramfs via hook to add default routes for Hetzner due to Debian/Ubuntu initramfs DHCP bug =========" mkdir -p "$c_zfs_mount_dir/usr/share/initramfs-tools/scripts/init-premount" diff --git a/hetzner-debian11-zfs-setup.sh b/hetzner-debian11-zfs-setup.sh index cb19010..2f03a0c 100644 --- a/hetzner-debian11-zfs-setup.sh +++ b/hetzner-debian11-zfs-setup.sh @@ -774,6 +774,7 @@ if [[ $v_encrypt_rpool == "1" ]]; then echo "=========set up dropbear==============" chroot_execute "apt install --yes dropbear-initramfs" + chroot_execute "apt purge cryptsetup-initramfs --yes" cp /root/.ssh/authorized_keys "$c_zfs_mount_dir/etc/dropbear-initramfs/authorized_keys" diff --git a/hetzner-debian12-zfs-setup.sh b/hetzner-debian12-zfs-setup.sh index 4362b2c..9e179fb 100644 --- a/hetzner-debian12-zfs-setup.sh +++ b/hetzner-debian12-zfs-setup.sh @@ -773,6 +773,8 @@ if [[ $v_encrypt_rpool == "1" ]]; then echo "=========set up dropbear==============" chroot_execute "apt install --yes dropbear-initramfs" + chroot_execute "apt purge cryptsetup-initramfs --yes" + mkdir -p "$c_zfs_mount_dir/etc/dropbear/initramfs" cp /root/.ssh/authorized_keys "$c_zfs_mount_dir/etc/dropbear/initramfs/authorized_keys" @@ -839,6 +841,8 @@ chmod 755 "$c_zfs_mount_dir/etc/network/interfaces" echo "======= update initramfs ==========" chroot_execute "update-initramfs -u -k all" +chroot_execute "apt remove cryptsetup-initramfs --yes" + echo "======= update grub ==========" chroot_execute "update-grub" diff --git a/hetzner-ubuntu20-zfs-setup.sh b/hetzner-ubuntu20-zfs-setup.sh index 5f3bed4..158b5d9 100644 --- a/hetzner-ubuntu20-zfs-setup.sh +++ b/hetzner-ubuntu20-zfs-setup.sh @@ -755,6 +755,7 @@ done if [[ $v_encrypt_rpool == "1" ]]; then echo "=========set up dropbear==============" chroot_execute "apt install --yes dropbear-initramfs" + chroot_execute "apt purge cryptsetup-initramfs --yes" cp /root/.ssh/authorized_keys "$c_zfs_mount_dir/etc/dropbear-initramfs/authorized_keys" diff --git a/hetzner-ubuntu22-zfs-setup.sh b/hetzner-ubuntu22-zfs-setup.sh index d04dd09..a2fea91 100644 --- a/hetzner-ubuntu22-zfs-setup.sh +++ b/hetzner-ubuntu22-zfs-setup.sh @@ -755,6 +755,7 @@ done if [[ $v_encrypt_rpool == "1" ]]; then echo "=========set up dropbear==============" chroot_execute "apt install --yes dropbear-initramfs" + chroot_execute "apt purge cryptsetup-initramfs --yes" cp /root/.ssh/authorized_keys "$c_zfs_mount_dir/etc/dropbear-initramfs/authorized_keys"