diff options
-rw-r--r-- | meta/classes/rootfs-postcommands.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass index 5c0b3ec37c..f7517c66dc 100644 --- a/meta/classes/rootfs-postcommands.bbclass +++ b/meta/classes/rootfs-postcommands.bbclass | |||
@@ -119,7 +119,9 @@ read_only_rootfs_hook () { | |||
119 | # Also tweak the key location for dropbear in the same way. | 119 | # Also tweak the key location for dropbear in the same way. |
120 | if [ -d ${IMAGE_ROOTFS}/etc/dropbear ]; then | 120 | if [ -d ${IMAGE_ROOTFS}/etc/dropbear ]; then |
121 | if [ ! -e ${IMAGE_ROOTFS}/etc/dropbear/dropbear_rsa_host_key ]; then | 121 | if [ ! -e ${IMAGE_ROOTFS}/etc/dropbear/dropbear_rsa_host_key ]; then |
122 | echo "DROPBEAR_RSAKEY_DIR=/var/lib/dropbear" >> ${IMAGE_ROOTFS}/etc/default/dropbear | 122 | if ! grep -q "^DROPBEAR_RSAKEY_DIR=" ${IMAGE_ROOTFS}/etc/default/dropbear ; then |
123 | echo "DROPBEAR_RSAKEY_DIR=/var/lib/dropbear" >> ${IMAGE_ROOTFS}/etc/default/dropbear | ||
124 | fi | ||
123 | fi | 125 | fi |
124 | fi | 126 | fi |
125 | fi | 127 | fi |