From 06b5eeca0211f7c69afd0b5e869af8985a724899 Mon Sep 17 00:00:00 2001 From: terem42 <9478806+terem42@users.noreply.github.com> Date: Fri, 6 Oct 2023 08:29:25 +0200 Subject: [PATCH] first try --- hetzner-debian10-zfs-setup.sh | 2 +- hetzner-debian12-zfs-setup.sh | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hetzner-debian10-zfs-setup.sh b/hetzner-debian10-zfs-setup.sh index 9590c0a..adc692c 100644 --- a/hetzner-debian10-zfs-setup.sh +++ b/hetzner-debian10-zfs-setup.sh @@ -769,7 +769,7 @@ if [[ $v_encrypt_rpool == "1" ]]; then echo "=========set up dropbear==============" chroot_execute "apt install --yes dropbear-initramfs" - + mkdir -p "$c_zfs_mount_dir/etc/dropbear-initramfs" cp /root/.ssh/authorized_keys "$c_zfs_mount_dir/etc/dropbear-initramfs/authorized_keys" cp "$c_zfs_mount_dir/etc/ssh/ssh_host_rsa_key" "$c_zfs_mount_dir/etc/ssh/ssh_host_rsa_key_temp" diff --git a/hetzner-debian12-zfs-setup.sh b/hetzner-debian12-zfs-setup.sh index 174bc9c..7db5ca8 100644 --- a/hetzner-debian12-zfs-setup.sh +++ b/hetzner-debian12-zfs-setup.sh @@ -773,8 +773,10 @@ if [[ $v_encrypt_rpool == "1" ]]; then echo "=========set up dropbear==============" chroot_execute "apt install --yes dropbear-initramfs" - mkdir "$c_zfs_mount_dir/etc/dropbear-initramfs" - cp /root/.ssh/authorized_keys "$c_zfs_mount_dir/etc/dropbear-initramfs/authorized_keys" + #mkdir -p "$c_zfs_mount_dir/etc/dropbear-initramfs" + #cp /root/.ssh/authorized_keys "$c_zfs_mount_dir/etc/dropbear-initramfs/authorized_keys" + mkdir -p "$c_zfs_mount_dir/etc/dropbear/initramfs" + cp /root/.ssh/authorized_keys "$c_zfs_mount_dir/etc/dropbear/initramfs/authorized_keys" cp "$c_zfs_mount_dir/etc/ssh/ssh_host_rsa_key" "$c_zfs_mount_dir/etc/ssh/ssh_host_rsa_key_temp" chroot_execute "ssh-keygen -p -i -m pem -N '' -f /etc/ssh/ssh_host_rsa_key_temp"