Patchwork openssh: dont use DNS lookup for Qemu

login
register
mail settings
Submitter Saul Wold
Date March 17, 2014, 5 p.m.
Message ID <1395075649-10987-1-git-send-email-sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/68753/
State New
Headers show

Comments

Saul Wold - March 17, 2014, 5 p.m.
Since we are always using ip address to connect to the sshd server, it does not need
to use reverse DNS to look up the ip address.  This will save some time during testing.

[YOCTO #5954]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-connectivity/openssh/openssh_6.5p1.bb | 4 ++++
 1 file changed, 4 insertions(+)
Koen Kooi - March 18, 2014, 7:14 a.m.
Op 17 mrt. 2014, om 18:00 heeft Saul Wold <sgw@linux.intel.com> het volgende geschreven:

> Since we are always using ip address to connect to the sshd server, it does not need
> to use reverse DNS to look up the ip address.  This will save some time during testing.

This is better done in your image file as IMAGE_PREPROCESS_CMD since not everyone uses qemu the way you are using it.

> 
> [YOCTO #5954]
> 
> Signed-off-by: Saul Wold <sgw@linux.intel.com>
> ---
> meta/recipes-connectivity/openssh/openssh_6.5p1.bb | 4 ++++
> 1 file changed, 4 insertions(+)
> 
> diff --git a/meta/recipes-connectivity/openssh/openssh_6.5p1.bb b/meta/recipes-connectivity/openssh/openssh_6.5p1.bb
> index 6c413af..9ad25fa 100644
> --- a/meta/recipes-connectivity/openssh/openssh_6.5p1.bb
> +++ b/meta/recipes-connectivity/openssh/openssh_6.5p1.bb
> @@ -109,6 +109,10 @@ do_install_append () {
> 		${D}${systemd_unitdir}/system/sshd.socket ${D}${systemd_unitdir}/system/*.service
> }
> 
> +do_install_append_qemuall() {
> +	sed -i -e 's:#UseDNS yes:UseDNS no:' ${WORKDIR}/sshd_config ${D}${sysconfdir}/ssh/sshd_config
> +}
> +
> ALLOW_EMPTY_${PN} = "1"
> 
> PACKAGES =+ "${PN}-keygen ${PN}-scp ${PN}-ssh ${PN}-sshd ${PN}-sftp ${PN}-misc ${PN}-sftp-server"
> -- 
> 1.8.3.1
> 
> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>

Patch

diff --git a/meta/recipes-connectivity/openssh/openssh_6.5p1.bb b/meta/recipes-connectivity/openssh/openssh_6.5p1.bb
index 6c413af..9ad25fa 100644
--- a/meta/recipes-connectivity/openssh/openssh_6.5p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_6.5p1.bb
@@ -109,6 +109,10 @@  do_install_append () {
 		${D}${systemd_unitdir}/system/sshd.socket ${D}${systemd_unitdir}/system/*.service
 }
 
+do_install_append_qemuall() {
+	sed -i -e 's:#UseDNS yes:UseDNS no:' ${WORKDIR}/sshd_config ${D}${sysconfdir}/ssh/sshd_config
+}
+
 ALLOW_EMPTY_${PN} = "1"
 
 PACKAGES =+ "${PN}-keygen ${PN}-scp ${PN}-ssh ${PN}-sshd ${PN}-sftp ${PN}-misc ${PN}-sftp-server"