<div dir="ltr"><div>Should be ${D}, not ${B} in do_install.<br></div><div><br></div><div>Alex</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 14 Jun 2019 at 15:53, Larry Brown <<a href="mailto:elcapitanbrown@gmail.com">elcapitanbrown@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:comic sans ms,sans-serif">I've created a recipe that simply copies files into a folder of the image. Basically in this form:</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><br></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">------------------------------------------------------</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><br></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">SUMMARY = "Some text"</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">HOMEPAGE = ""</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">LICENSE = "CLOSED"</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">LIC_FILES_CHKSUM = ""</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><br></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">DEPENDS = "openssl"</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><br></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">do_install () {</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">   install -m 0644 ${WORKDIR}/path/fileA ${B}/</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">   install -m 0644 ${WORKDIR}/path/fileB ${B}/</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">}</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><br></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">FILES_${PN}-ssh = "${sysconfdir}/path/fileA ${sysconfdir}/path/fileB"</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><br></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">-------------------------------------------------</div><div><br></div><div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif">When I build this I only want the files in the target image. I don't need an rpm built that could be used to deliver these files. Now there might be something I could do that would enable DNF to succeed, however I would like to learn how to get the package installer to ignore/skip a recipe (<a href="http://openssh-keys-install.bb" target="_blank">openssh-keys-install.bb</a> in this case) that is only used during the initial build.</div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif">Can someone shed some light here? </div><br></div><div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif">Also, if there is already a way built into the build process to retain a set of keys for each device so they don't keep creating new keys, that would be cool and appreciated, but I'm wanting to learn how to accomplish this so it does not stop me when wanting to include other files elsewhere.</div><br></div><div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif">I'm assuming here that there is someone here that has dealt with this; however, if I'm mistaken the following is the error that is generated when building. And by the way, the files do get placed into the correct folder (after some bit of tweaking of the code). But the error persists:</div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif">ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf. Command '...--nogpgcheck install base-passwd iptables openssh openssh-keys-install packagegroup-core-boot run-postinsts shadow' returned 1:</div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif">DNF version:4.2.2</div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif">cachedir: /stor/development/yocto/poky/trident-build/tmp/work/raspberrypi3_64-poky-linux/core-image-minimal/1.0-r0/rootfs/var/cache/dnf<br>Added oe-repo repo from /stor/development/yocto/poky/trident-build/tmp/work/raspberrypi3_64-poky-linux/core-image-minimal/1.0-r0/oe-rootfs-repo<br>repo: using cache for: oe-repo<br>not found other for: <br>not found modules for: <br>not found deltainfo for: <br>not found updateinfo for: <br>oe-repo: using metadata from Thu 13 Jun 2019 09:13:54 PM UTC.<br>No module defaults found<br></div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif">No match for argument: openssh-keys-install<br>Error: Unable to find a match<br><br>ERROR: core-image-minimal-1.0-r0 do_rootfs: <br>ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs<br></div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif">....</div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif">TIA</div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif"><br></div><br></div><div><br></div>-- <br><div dir="ltr" class="gmail-m_-2484117753926535637gmail_signature"><div dir="ltr">Larry Brown<div>S/V Trident</div><div>Palm Harbor, FL</div><div>~~~~~~~~~~~~~~~~~_/)~~~~~~~~</div><div>  ~   ~      ~~      ~</div><div>~      ~~_/)   ~    ~ ~     ~</div><div>   ~          _/)      ~</div></div></div></div>
-- <br>
_______________________________________________<br>
yocto mailing list<br>
<a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a><br>
<a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank">https://lists.yoctoproject.org/listinfo/yocto</a><br>
</blockquote></div>