Hello,

I am trying to make an image (this is for an i.MX8, although I don’t think it 
matters for this question) that contains a dnf repo in it. I created a 
dnf_%.bbappend file in my layer with the following contents:

LICENSE = "CLOSED"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

SRC_URI += " \
file://my.repo \
"

do_install_append () {
install -d ${D}${sysconfdir}/yum.repos.d/
install -m 0644 ${WORKDIR}/my.repo ${D}${sysconfdir}/yum.repos.d/
}

FILES_${PN} += " \
${sysconfdir}/yum.repos.d/my.repo \
"

This same structure works fine for base-files, but for dnf I get the following 
error:

[log_check] Failed to synchronize cache for repo 'oe-packages', disabling.


Can anyone tell me what is happening and how to fix it?

Thank you.

-Aaron

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#47556): https://lists.yoctoproject.org/g/yocto/message/47556
Mute This Topic: https://lists.yoctoproject.org/mt/66430691/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to