diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/image.bbclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 9fbdce583c..d2f8105f13 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -251,6 +251,17 @@ read_only_rootfs_hook () { | |||
251 | echo "SSHD_OPTS='-f /etc/ssh/sshd_config_readonly'" >> ${IMAGE_ROOTFS}/etc/default/ssh | 251 | echo "SSHD_OPTS='-f /etc/ssh/sshd_config_readonly'" >> ${IMAGE_ROOTFS}/etc/default/ssh |
252 | fi | 252 | fi |
253 | fi | 253 | fi |
254 | |||
255 | # Also tweak the key location for dropbear in the same way. | ||
256 | if [ -d ${IMAGE_ROOTFS}/etc/dropbear ]; then | ||
257 | if [ -e ${IMAGE_ROOTFS}/etc/dropbear/dropbear_rsa_host_key ]; then | ||
258 | echo "DROPBEAR_RSAKEY_DIR=/etc/dropbear" >> ${IMAGE_ROOTFS}/etc/default/dropbear | ||
259 | else | ||
260 | echo "DROPBEAR_RSAKEY_DIR=/var/lib/dropbear" >> ${IMAGE_ROOTFS}/etc/default/dropbear | ||
261 | fi | ||
262 | fi | ||
263 | |||
264 | |||
254 | if ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "true", "false", d)}; then | 265 | if ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "true", "false", d)}; then |
255 | # Change the value of ROOTFS_READ_ONLY in /etc/default/rcS to yes | 266 | # Change the value of ROOTFS_READ_ONLY in /etc/default/rcS to yes |
256 | if [ -e ${IMAGE_ROOTFS}/etc/default/rcS ]; then | 267 | if [ -e ${IMAGE_ROOTFS}/etc/default/rcS ]; then |