From c63e4bcea82d1659328a626fdf6ef14a729eff04 2018-11-29 19:54:03 From: Unknown Date: 2018-11-29 19:54:03 Subject: [PATCH] a --- diff --git a/bootstrap.d/14-fstab.sh b/bootstrap.d/14-fstab.sh index 9437b08..ce4e195 100644 --- a/bootstrap.d/14-fstab.sh +++ b/bootstrap.d/14-fstab.sh @@ -69,6 +69,12 @@ if [ "$ENABLE_INITRAMFS" = true ] ; then # Get unlock script install_exec files/initramfs/crypt_unlock.sh "${ETC_DIR}"/initramfs-tools/hooks/crypt_unlock.sh + + # Enable Dropbear inside initramfs + printf "#\n# DROPBEAR: [ y | n ]\n#\n\nDROPBEAR=y\n" >> "${ETC_DIR}/initramfs-tools/initramfs.conf" + + # Enable Dropbear inside initramfs + sed -i "54 i sleep 5" "${R}"/ust/share/initramfs-tools/scripts/init-premount/dropbear fi else # Disable SSHD inside initramfs