Op 19 mrt. 2014, om 01:31 heeft Saul Wold <[email protected]> het volgende geschreven:
> Signed-off-by: Saul Wold <[email protected]> > --- > meta/classes/testimage.bbclass | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass > index 691c7f6..ee028e1 100644 > --- a/meta/classes/testimage.bbclass > +++ b/meta/classes/testimage.bbclass > @@ -45,6 +45,16 @@ TESTIMAGEDEPENDS_qemuall = > "qemu-native:do_populate_sysroot qemu-helper-native:d > TESTIMAGELOCK = "${TMPDIR}/testimage.lock" > TESTIMAGELOCK_qemuall = "" > > +IMAGE_POSTPROCESS_COMMAND_qemuall += "fix_dns_lookup_for_qemu" Overrides and += don't do what you expect most of the time, _append_qemuall = " fix_dns_lookup_for_qemu" is a safer way to specify this. But more importantly, you're missing the trailing semicolon :) IMAGE_POSTPROCESS_COMMAND_append_qemuall = " fix_dns_lookup_for_qemu ;" regards, Koen > + > +fix_dns_lookup_for_qemu() { > + if [ -e ${IMAGE_ROOTFS}${sysconfdir}/ssh/sshd_config ]; then > + sed -i -e 's:#UseDNS yes:UseDNS no:' > ${IMAGE_ROOTFS}${sysconfdir}/ssh/sshd_config > + fi > +} > + > +EXPORT_FUNCTIONS fix_dns_lookup_for_qemu > + > python do_testimage() { > testimage_main(d) > } > -- > 1.8.3.1 > > -- > _______________________________________________ > Openembedded-core mailing list > [email protected] > http://lists.openembedded.org/mailman/listinfo/openembedded-core > -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
