Linux Yocto-尚未应用修补程序
我正在使用用Yocto构建的Linux。我需要对Linux Yocto-尚未应用修补程序,linux,yocto,patch,bitbake,Linux,Yocto,Patch,Bitbake,我正在使用用Yocto构建的Linux。我需要对/etc/ssh/sshd\u config文件添加一些更改。我使用meld创建了以下修补程序文件: --- a/sshd_config +++ b/sshd_config @@ -116,3 +116,8 @@ # AllowTcpForwarding no # PermitTTY no # ForceCommand cvs server + +#SFTP server configuration +Match Group root
/etc/ssh/sshd\u config
文件添加一些更改。我使用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
在metamylayer/recipes connectivity/openssh
中,我创建了openssh_8.2p1.bbappend
文件,其中包含以下内容:
FILESEXTRAPATHS_prepend := "${THISDIR}:"
SRC_URI += "file://configure_sftp_server.patch"
我把.patch文件放在同一个目录中。问题是Yocto在构建映像时既不显示错误也不显示警告,但它不应用我的补丁
创建补丁文件后,我更改了前两行,因为在meld版本中,它们包含到比较文件的绝对路径。我想这可能是问题所在,但我不知道该写什么
提前感谢您的帮助