Skip to contentSkip to conversation

Fix openssh init script for read-only-rootfs

PATCH New Matthew Campbell 1 participant 2 messages Jun 14, 2016

lore
Share & tools
lore
#0 lore raw

cover Fix openssh init script for read-only-rootfs

The following changes since commit 71765a90d1ff455608a006ed32cf42110e779217:

bitbake: cooker.py: fix warn() -> warning() (2016-06-13 12:16:10 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib mcampbell/openssh-readonly
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=mcampbell/openssh-readonly

Matthew Campbell (1):
openssh: fix init script restart with read-only-rootfs

 meta/recipes-connectivity/openssh/openssh/init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.5.0
#1 lore raw

PATCH 1/1 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.

---
 meta/recipes-connectivity/openssh/openssh/init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/openssh/openssh/init +1 -1
index 70d4a34..1f63725 100644
@@ -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() {
Signature · 1 line
2.5.0