Sample Header Ad - 728x90

Yocto - patch has not been applied

1 vote
2 answers
4570 views
I am working with Linux built with Yocto. I need to add some changes to /etc/ssh/sshd_config file. I created the following patch file using meld: --- a/sshd_config +++ b/sshd_config @@ -116,3 +116,8 @@ # AllowTcpForwarding no # PermitTTY no # ForceCommand cvs server + +#SFTP server configuration +Match Group root +ChrootDirectory /share +ForceCommand internal-sftp In meta-mylayer/recipes-connectivity/openssh I created the openssh_8.2p1.bbappend file with the following content: FILESEXTRAPATHS_prepend := "${THISDIR}:" SRC_URI += "file://configure_sftp_server.patch" In the same directory I put my .patch file. The problem is that Yocto shows neither errors nor warnings during building the image but it doesn't apply my patch. After creating the patch file I was changed first two lines because in meld version they contained absolute paths to compared files. I suppose that this may be the problem but I don't know what I should write. Thank you in advance for any help.
Asked by tomi7654 (15 rep)
May 13, 2021, 10:37 AM
Last activity: Sep 13, 2021, 01:39 PM