[poky] Fwd: Poky build failure with "Could not invoke dnf" error message.
AshishKumar Mishra
ashish.emailaddress at gmail.com
Mon Oct 14 01:10:37 PDT 2019
Hi All ,
I am trying to build an image with my custom layer and getting error of
*"ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf.". *
( i have added an basic ethernet up/down systemd service in my layer)
The details of service file & log are attached in (poky-error.txt)
Thanks ,
Ashish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20191014/1a9b108a/attachment.html>
-------------- next part --------------
ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home/ashish/Documents/linux-foundation-projects/yocto/build-armour/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /home/ashish/Documents/linux-foundation-projects/yocto/build-armour/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/ashish/Documents/linux-foundation-projects/yocto/build-armour/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/etc/yum.repos.d --installroot=/home/ashish/Documents/linux-foundation-projects/yocto/build-armour/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs --setopt=logdir=/home/ashish/Documents/linux-foundation-projects/yocto/build-armour/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp --repofrompath=oe-repo,/home/ashish/Documents/linux-foundation-projects/yocto/build-armour/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/oe-rootfs-repo --nogpgcheck install bc packagegroup-core-boot eth0 run-postinsts' returned 1:
DNF version: 4.2.2
cachedir: /home/ashish/Documents/linux-foundation-projects/yocto/build-armour/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/var/cache/dnf
Added oe-repo repo from /home/ashish/Documents/linux-foundation-projects/yocto/build-armour/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/oe-rootfs-repo
repo: using cache for: oe-repo
not found other for:
not found modules for:
not found deltainfo for:
not found updateinfo for:
oe-repo: using metadata from Mon 14 Oct 2019 05:03:55 AM UTC.
No module defaults found
No match for argument: eth0
Error: Unable to find a match
ERROR: core-image-minimal-1.0-r0 do_rootfs:
ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/ashish/Documents/linux-foundation-projects/yocto/build-armour/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.14555
ERROR: Task (/home/ashish/Documents/linux-foundation-projects/yocto/meta-minimal/recipes-armour/images/core-image-minimal.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2661 tasks of which 2660 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/ashish/Documents/linux-foundation-projects/yocto/meta-minimal/recipes-armour/images/core-image-minimal.bb:do_rootfs
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
[10:33:57]:~/Documents/linux-foundation-projects/yocto/build-armour :
// ===================================================================================================================================================
[13:36:26]:~/Documents/linux-foundation-projects/yocto/meta-mechanic/recipes-armour/eth0 (master) : cat eth0_0.1.bb
# Copyright (C) 2019 Ashish <ashishm at mvista.com>
# Released under the MIT license (see COPYING.MIT for the terms)
SUMMARY = "Install and start a systemd service"
SECTION = "eth0"
LICENSE = "MIT"
inherit systemd
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI += "file://eth0.service"
S = "${WORKDIR}"
#FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SYSTEMD_SERVICE_${PN} = "eth0.service"
do_install() {
install -d ${D}${systemd_system_unitdir}/system
install -m 0644 ${WORKDIR}/eth0.service ${D}${systemd_system_unitdir}/system
}
#FILES_${PN} += "/lib/systemd/system"
FILES_${PN} += "${systemd_system_unitdir}"
REQUIRED_DISTRO_FEATURES= "systemd"
// ===================================================================================================================================================
[13:36:29]:~/Documents/linux-foundation-projects/yocto/meta-mechanic/recipes-armour/eth0 (master) : cat eth0-0.1/eth0.service
[Unit]
Description=Network interfaces
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-eth0.device
After=sys.subsystem-net-devices-eth0.device
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/sh -c "ifup eth0"
ExecStop=/bin/sh -c "ifdown eth0"
[Install]
WantedBy=multi-user.target
[13:36:48]:~/Documents/linux-foundation-projects/yocto/meta-mechanic/recipes-armour/eth0 (master) :
// ===================================================================================================================================================
More information about the poky
mailing list