[oe-commits] [openembedded-core] 10/38: openssh: fix init script restart with read-only-rootfs

git at git.openembedded.org git at git.openembedded.org
Thu Jun 23 13:27:12 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit cb6f78072deb8b8c22baf5c31c3bd19d7e0af236
Author: Matthew Campbell <mcampbell at izotope.com>
AuthorDate: Tue Jun 14 17:34:18 2016 -0400

    openssh: fix init script restart with read-only-rootfs
    
    restart in the init script uses the check_config() function which doesn't have
    the $SSHD_OPTS passed through. This causes it to check the wrong config (and
    fail when read-only-rootfs is enabled.
    
    Signed-off-by: Matthew Campbell <mcampbell at izotope.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-connectivity/openssh/openssh/init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-connectivity/openssh/openssh/init b/meta/recipes-connectivity/openssh/openssh/init
index 70d4a34..1f63725 100644
--- a/meta/recipes-connectivity/openssh/openssh/init
+++ b/meta/recipes-connectivity/openssh/openssh/init
@@ -41,7 +41,7 @@ check_privsep_dir() {
 }
 
 check_config() {
-	/usr/sbin/sshd -t || exit 1
+	/usr/sbin/sshd -t $SSHD_OPTS || exit 1
 }
 
 check_keys() {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list