* ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf
@ 2022-03-22 15:56 john.lemonovich
2022-03-22 17:23 ` [poky] " Alexandre Belloni
0 siblings, 1 reply; 8+ messages in thread
From: john.lemonovich @ 2022-03-22 15:56 UTC (permalink / raw)
To: poky
[-- Attachment #1: Type: text/plain, Size: 1493 bytes --]
Hello,
I'm relatively new to working with Yocto / Poky and I'm trying to build a rootfs for an Arria10 Intel FPGA, according to the exact steps from Intel. My host machine is Ubuntu 18.04, and I am running into an error and was wondering how/where to start with debugging this? I read another post on here where this error was resolved in that case with adding ALLOW_EMPTY_${PN} = "1"
Is this the proper thing to do in this case, and if so, where do I add this?
Here is the command and the error message:
bitbake core-image-minimal
ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf. Command '/us/jlem/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /us/jlem/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/us/jlem/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/etc/yum.repos.d --installroot=/us/jlem/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs --setopt=logdir=/us/jlem/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp --repofrompath=oe-repo,/us/jlem/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/oe-rootfs-repo --nogpgcheck install packagegroup-core-boot run-postinsts' returned 1:
DNF version: 4.8.0
Thank you,
John
[-- Attachment #2: Type: text/html, Size: 3546 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf
2022-03-22 15:56 ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf john.lemonovich
@ 2022-03-22 17:23 ` Alexandre Belloni
2022-03-22 18:03 ` John Lemonovich
0 siblings, 1 reply; 8+ messages in thread
From: Alexandre Belloni @ 2022-03-22 17:23 UTC (permalink / raw)
To: John Lemonovich; +Cc: poky
Hello,
On 22/03/2022 15:56:47+0000, John Lemonovich wrote:
>
> Hello,
>
> I'm relatively new to working with Yocto / Poky and I'm trying to build a rootfs for an Arria10 Intel FPGA, according to the exact steps from Intel. My host machine is Ubuntu 18.04, and I am running into an error and was wondering how/where to start with debugging this? I read another post on here where this error was resolved in that case with adding ALLOW_EMPTY_${PN} = "1"
>
> Is this the proper thing to do in this case, and if so, where do I add this?
>
> Here is the command and the error message:
>
> bitbake core-image-minimal
>
> ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf. Command '/us/jlem/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /us/jlem/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/us/jlem/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/etc/yum.repos.d --installroot=/us/jlem/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs --setopt=logdir=/us/jlem/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp --repofrompath=oe-repo,/us/jlem/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/oe-rootfs-repo --nogpgcheck install packagegroup-core-boot run-postinsts' returned 1:
> DNF version: 4.8.0
>
The actual error from dnf is a bit later on in the log, can you share
it?
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf
2022-03-22 17:23 ` [poky] " Alexandre Belloni
@ 2022-03-22 18:03 ` John Lemonovich
2022-03-23 10:21 ` Peter Kjellerstedt
0 siblings, 1 reply; 8+ messages in thread
From: John Lemonovich @ 2022-03-22 18:03 UTC (permalink / raw)
To: Alexandre Belloni; +Cc: poky
Thank you for the reply. My apologies, here is the rest:
cachedir: /us/jlemonovich/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/var/cache/dnf
Added oe-repo repo from /us/jlemonovich/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/oe-rootfs-repo
User-Agent: falling back to 'libdnf': could not detect OS or basearch
repo: using cache for: oe-repo
oe-repo: using metadata from Tue 22 Mar 2022 06:01:43 PM UTC.
Last metadata expiration check: 0:00:01 ago on Tue 22 Mar 2022 06:01:44 PM UTC.
--> Starting dependency resolution
---> Package base-files.arria10 3.0.14-r89 will be installed
---> Package base-passwd.cortexa9t2hf_neon 3.5.29-r0 will be installed
---> Package busybox.cortexa9t2hf_neon 1.34.1-r0 will be installed
---> Package busybox-hwclock.cortexa9t2hf_neon 1.34.1-r0 will be installed
---> Package busybox-syslog.cortexa9t2hf_neon 1.34.1-r0 will be installed
---> Package busybox-udhcpc.cortexa9t2hf_neon 1.34.1-r0 will be installed
---> Package eudev.cortexa9t2hf_neon 3.2.10-r0 will be installed
---> Package init-ifupdown.arria10 1.0-r7 will be installed
---> Package init-system-helpers-service.cortexa9t2hf_neon 1.60-r0 will be installed
---> Package initscripts.cortexa9t2hf_neon 1.0-r155 will be installed
---> Package initscripts-functions.cortexa9t2hf_neon 1.0-r155 will be installed
---> Package ldconfig.cortexa9t2hf_neon 2.34-r0 will be installed
---> Package libblkid1.cortexa9t2hf_neon 2.37.4-r0 will be installed
---> Package libc6.cortexa9t2hf_neon 2.34-r0 will be installed
---> Package libkmod2.cortexa9t2hf_neon 29-r0 will be installed
---> Package libz1.cortexa9t2hf_neon 1.2.11-r0 will be installed
---> Package modutils-initscripts.cortexa9t2hf_neon 1.0-r7 will be installed
---> Package netbase.noarch 1:6.3-r0 will be installed
---> Package packagegroup-core-boot.arria10 1.0-r17 will be installed
---> Package run-postinsts.noarch 1.0-r10 will be installed
---> Package sysvinit.cortexa9t2hf_neon 2.99-r0 will be installed
---> Package sysvinit-inittab.arria10 2.88dsf-r10 will be installed
---> Package sysvinit-pidof.cortexa9t2hf_neon 2.99-r0 will be installed
---> Package update-alternatives-opkg.cortexa9t2hf_neon 0.4.5-r0 will be installed
---> Package update-rc.d.noarch 0.8-r0 will be installed
--> Finished dependency resolution
Dependencies resolved.
================================================================================
Package Architecture Version Repo Size
================================================================================
Installing:
packagegroup-core-boot arria10 1.0-r17 oe-repo 5.9 k
run-postinsts noarch 1.0-r10 oe-repo 8.4 k
Installing dependencies:
base-files arria10 3.0.14-r89 oe-repo 13 k
base-passwd cortexa9t2hf_neon 3.5.29-r0 oe-repo 7.2 k
busybox cortexa9t2hf_neon 1.34.1-r0 oe-repo 347 k
busybox-hwclock cortexa9t2hf_neon 1.34.1-r0 oe-repo 8.7 k
eudev cortexa9t2hf_neon 3.2.10-r0 oe-repo 201 k
init-ifupdown arria10 1.0-r7 oe-repo 9.5 k
init-system-helpers-service cortexa9t2hf_neon 1.60-r0 oe-repo 9.7 k
initscripts cortexa9t2hf_neon 1.0-r155 oe-repo 23 k
initscripts-functions cortexa9t2hf_neon 1.0-r155 oe-repo 7.7 k
libblkid1 cortexa9t2hf_neon 2.37.4-r0 oe-repo 117 k
libc6 cortexa9t2hf_neon 2.34-r0 oe-repo 764 k
libkmod2 cortexa9t2hf_neon 29-r0 oe-repo 34 k
libz1 cortexa9t2hf_neon 1.2.11-r0 oe-repo 44 k
modutils-initscripts cortexa9t2hf_neon 1.0-r7 oe-repo 8.0 k
netbase noarch 1:6.3-r0 oe-repo 14 k
sysvinit cortexa9t2hf_neon 2.99-r0 oe-repo 62 k
sysvinit-inittab arria10 2.88dsf-r10 oe-repo 8.1 k
sysvinit-pidof cortexa9t2hf_neon 2.99-r0 oe-repo 15 k
update-alternatives-opkg cortexa9t2hf_neon 0.4.5-r0 oe-repo 8.6 k
Installing weak dependencies:
busybox-syslog cortexa9t2hf_neon 1.34.1-r0 oe-repo 9.9 k
busybox-udhcpc cortexa9t2hf_neon 1.34.1-r0 oe-repo 8.1 k
ldconfig cortexa9t2hf_neon 2.34-r0 oe-repo 256 k
update-rc.d noarch 0.8-r0 oe-repo 8.7 k
Transaction Summary
================================================================================
Install 25 Packages
Total size: 2.0 M
Installed size: 3.8 M
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction test error:
file /var/lib conflicts between attempted installs of initscripts-1.0-r155.cortexa9t2hf_neon and base-files-3.0.14-r89.arria10
ERROR: Logfile of failure stored in: /us/jlemonovich/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.5 48
ERROR: Task (/us/jlemonovich/L3_rootfs/a10/poky/meta/recipes-core/images/core-image-minimal.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2978 tasks of which 2977 didn't need to be rerun and 1 failed.
-----Original Message-----
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
Sent: Tuesday, March 22, 2022 1:24 PM
To: John Lemonovich <john.lemonovich@foresys.com>
Cc: poky@lists.yoctoproject.org
Subject: Re: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf
Hello,
On 22/03/2022 15:56:47+0000, John Lemonovich wrote:
>
> Hello,
>
> I'm relatively new to working with Yocto / Poky and I'm trying to build a rootfs for an Arria10 Intel FPGA, according to the exact steps from Intel. My host machine is Ubuntu 18.04, and I am running into an error and was wondering how/where to start with debugging this? I read another post on here where this error was resolved in that case with adding ALLOW_EMPTY_${PN} = "1"
>
> Is this the proper thing to do in this case, and if so, where do I add this?
>
> Here is the command and the error message:
>
> bitbake core-image-minimal
>
> ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf. Command '/us/jlem/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /us/jlem/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/us/jlem/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/etc/yum.repos.d --installroot=/us/jlem/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs --setopt=logdir=/us/jlem/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp --repofrompath=oe-repo,/us/jlem/L3_rootfs/a10/build/tmp/work/arria10-poky-linux-gnueabi/core-image-minimal/1.0-r0/oe-rootfs-repo --nogpgcheck install packagegroup-core-boot run-postinsts' returned 1:
> DNF version: 4.8.0
>
The actual error from dnf is a bit later on in the log, can you share it?
--
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf
2022-03-22 18:03 ` John Lemonovich
@ 2022-03-23 10:21 ` Peter Kjellerstedt
2022-03-23 13:48 ` John Lemonovich
[not found] ` <16DF06ACABF4E6A1.29582@lists.yoctoproject.org>
0 siblings, 2 replies; 8+ messages in thread
From: Peter Kjellerstedt @ 2022-03-23 10:21 UTC (permalink / raw)
To: John Lemonovich, Alexandre Belloni; +Cc: poky
> -----Original Message-----
> From: poky@lists.yoctoproject.org <poky@lists.yoctoproject.org> On Behalf
> Of John Lemonovich
> Sent: den 22 mars 2022 19:04
> To: Alexandre Belloni <alexandre.belloni@bootlin.com>
> Cc: poky@lists.yoctoproject.org
> Subject: Re: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not
> invoke dnf
>
> Thank you for the reply. My apologies, here is the rest:
[cut]
> Transaction Summary
> ================================================================================
> Install 25 Packages
>
> Total size: 2.0 M
> Installed size: 3.8 M
> Downloading Packages:
> Running transaction check
> Transaction check succeeded.
> Running transaction test
> Error: Transaction test error:
> file /var/lib conflicts between attempted installs of initscripts-1.0-r155.cortexa9t2hf_neon and base-files-3.0.14-r89.arria10
This means that the two packages are trying to create /var/lib differently.
If you run `rpm -qilvp <path to respective rpm file>`, you should be able
to tell what the difference is. The rpm files can be found in "tmp/deploy/rpm/".
Then you will have to determine what causes this difference in your
configuration, because they do not differ in a standard poky build.
//Peter
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf
2022-03-23 10:21 ` Peter Kjellerstedt
@ 2022-03-23 13:48 ` John Lemonovich
[not found] ` <16DF06ACABF4E6A1.29582@lists.yoctoproject.org>
1 sibling, 0 replies; 8+ messages in thread
From: John Lemonovich @ 2022-03-23 13:48 UTC (permalink / raw)
To: Peter Kjellerstedt, Alexandre Belloni; +Cc: poky
Hi Peter,
Thanks for the reply. I looked at it and here is the difference. Is it a problem that each one needs a different subdirectory within /var/lib/ ?
From tmp/deploy/rpm/cortexa9t2hf_neon/initscripts-1.0-r155.cortexa9t2hf_neon.rpm :
drwxr-x--- 2 root root 0 Apr 5 2011 /var/lib
drwxr-xr-x 2 root root 0 Apr 5 2011 /var/lib/urandom
From tmp/deploy/rpm/arria10/base-files-3.0.14-r89.arria10.rpm:
drwxr-xr-x 2 root root 0 Apr 5 2011 /var/lib
drwxr-xr-x 2 root root 0 Apr 5 2011 /var/lib/misc
I'm not sure what's causing the problem with the configuration - the steps to create the rootfs are given from Intel/Rocketboards and I would presume worked at some point. However, I will say that it's more common than not for a given set of build commands/steps to NOT work by default without problems...
Thanks,
John
-----Original Message-----
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Sent: Wednesday, March 23, 2022 6:21 AM
To: John Lemonovich <john.lemonovich@foresys.com>; Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: poky@lists.yoctoproject.org
Subject: RE: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf
> -----Original Message-----
> From: poky@lists.yoctoproject.org <poky@lists.yoctoproject.org> On
> Behalf Of John Lemonovich
> Sent: den 22 mars 2022 19:04
> To: Alexandre Belloni <alexandre.belloni@bootlin.com>
> Cc: poky@lists.yoctoproject.org
> Subject: Re: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could
> not invoke dnf
>
> Thank you for the reply. My apologies, here is the rest:
[cut]
> Transaction Summary
> ======================================================================
> ==========
> Install 25 Packages
>
> Total size: 2.0 M
> Installed size: 3.8 M
> Downloading Packages:
> Running transaction check
> Transaction check succeeded.
> Running transaction test
> Error: Transaction test error:
> file /var/lib conflicts between attempted installs of
> initscripts-1.0-r155.cortexa9t2hf_neon and
> base-files-3.0.14-r89.arria10
This means that the two packages are trying to create /var/lib differently.
If you run `rpm -qilvp <path to respective rpm file>`, you should be able to tell what the difference is. The rpm files can be found in "tmp/deploy/rpm/".
Then you will have to determine what causes this difference in your configuration, because they do not differ in a standard poky build.
//Peter
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf
[not found] ` <16DF06ACABF4E6A1.29582@lists.yoctoproject.org>
@ 2022-03-23 14:01 ` John Lemonovich
2022-03-23 14:40 ` Peter Kjellerstedt
0 siblings, 1 reply; 8+ messages in thread
From: John Lemonovich @ 2022-03-23 14:01 UTC (permalink / raw)
To: John Lemonovich, Peter Kjellerstedt, Alexandre Belloni; +Cc: poky
Or... is it the different permissions on the /var/lib directory itself ?
-----Original Message-----
From: poky@lists.yoctoproject.org <poky@lists.yoctoproject.org> On Behalf Of John Lemonovich via lists.yoctoproject.org
Sent: Wednesday, March 23, 2022 9:49 AM
To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>; Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: poky@lists.yoctoproject.org
Subject: Re: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf
Hi Peter,
Thanks for the reply. I looked at it and here is the difference. Is it a problem that each one needs a different subdirectory within /var/lib/ ?
From tmp/deploy/rpm/cortexa9t2hf_neon/initscripts-1.0-r155.cortexa9t2hf_neon.rpm :
drwxr-x--- 2 root root 0 Apr 5 2011 /var/lib
drwxr-xr-x 2 root root 0 Apr 5 2011 /var/lib/urandom
From tmp/deploy/rpm/arria10/base-files-3.0.14-r89.arria10.rpm:
drwxr-xr-x 2 root root 0 Apr 5 2011 /var/lib
drwxr-xr-x 2 root root 0 Apr 5 2011 /var/lib/misc
I'm not sure what's causing the problem with the configuration - the steps to create the rootfs are given from Intel/Rocketboards and I would presume worked at some point. However, I will say that it's more common than not for a given set of build commands/steps to NOT work by default without problems...
Thanks,
John
-----Original Message-----
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Sent: Wednesday, March 23, 2022 6:21 AM
To: John Lemonovich <john.lemonovich@foresys.com>; Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: poky@lists.yoctoproject.org
Subject: RE: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf
> -----Original Message-----
> From: poky@lists.yoctoproject.org <poky@lists.yoctoproject.org> On
> Behalf Of John Lemonovich
> Sent: den 22 mars 2022 19:04
> To: Alexandre Belloni <alexandre.belloni@bootlin.com>
> Cc: poky@lists.yoctoproject.org
> Subject: Re: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could
> not invoke dnf
>
> Thank you for the reply. My apologies, here is the rest:
[cut]
> Transaction Summary
> ======================================================================
> ==========
> Install 25 Packages
>
> Total size: 2.0 M
> Installed size: 3.8 M
> Downloading Packages:
> Running transaction check
> Transaction check succeeded.
> Running transaction test
> Error: Transaction test error:
> file /var/lib conflicts between attempted installs of
> initscripts-1.0-r155.cortexa9t2hf_neon and
> base-files-3.0.14-r89.arria10
This means that the two packages are trying to create /var/lib differently.
If you run `rpm -qilvp <path to respective rpm file>`, you should be able to tell what the difference is. The rpm files can be found in "tmp/deploy/rpm/".
Then you will have to determine what causes this difference in your configuration, because they do not differ in a standard poky build.
//Peter
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf
2022-03-23 14:01 ` John Lemonovich
@ 2022-03-23 14:40 ` Peter Kjellerstedt
2022-03-24 18:40 ` John Lemonovich
0 siblings, 1 reply; 8+ messages in thread
From: Peter Kjellerstedt @ 2022-03-23 14:40 UTC (permalink / raw)
To: John Lemonovich, Alexandre Belloni; +Cc: poky
> -----Original Message-----
> From: John Lemonovich <john.lemonovich@foresys.com>
> Sent: den 23 mars 2022 15:01
> To: John Lemonovich <john.lemonovich@foresys.com>; Peter Kjellerstedt
> <peter.kjellerstedt@axis.com>; Alexandre Belloni
> <alexandre.belloni@bootlin.com>
> Cc: poky@lists.yoctoproject.org
> Subject: RE: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not
> invoke dnf
>
> Or... is it the different permissions on the /var/lib directory itself ?
Yes, it is. Everything about a directory must match for dnf/rpm to
allow it to be created by multiple packages.
In this case it seems the initscripts package you use has the wrong
permissions for /var/lib as it shall be 0755, not 0750. AFAICT, the
recipe in meta has created /var/lib with mode 0755 since the creation
of /var/lib/urandom was introduced in 2012 so it must be something in
one of your layers that change the behavior of the initscripts package.
//Peter
> -----Original Message-----
> From: poky@lists.yoctoproject.org <poky@lists.yoctoproject.org> On Behalf
> Of John Lemonovich via lists.yoctoproject.org
> Sent: Wednesday, March 23, 2022 9:49 AM
> To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>; Alexandre Belloni
> <alexandre.belloni@bootlin.com>
> Cc: poky@lists.yoctoproject.org
> Subject: Re: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not
> invoke dnf
>
> Hi Peter,
>
> Thanks for the reply. I looked at it and here is the difference. Is it a
> problem that each one needs a different subdirectory within /var/lib/ ?
>
> From tmp/deploy/rpm/cortexa9t2hf_neon/initscripts-1.0-r155.cortexa9t2hf_neon.rpm :
> drwxr-x--- 2 root root 0 Apr 5 2011 /var/lib
> drwxr-xr-x 2 root root 0 Apr 5 2011 /var/lib/urandom
>
> From tmp/deploy/rpm/arria10/base-files-3.0.14-r89.arria10.rpm:
> drwxr-xr-x 2 root root 0 Apr 5 2011 /var/lib
> drwxr-xr-x 2 root root 0 Apr 5 2011 /var/lib/misc
>
>
> I'm not sure what's causing the problem with the configuration - the steps
> to create the rootfs are given from Intel/Rocketboards and I would presume
> worked at some point. However, I will say that it's more common than not
> for a given set of build commands/steps to NOT work by default without
> problems...
>
> Thanks,
> John
>
>
> -----Original Message-----
> From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> Sent: Wednesday, March 23, 2022 6:21 AM
> To: John Lemonovich <john.lemonovich@foresys.com>; Alexandre Belloni
> <alexandre.belloni@bootlin.com>
> Cc: poky@lists.yoctoproject.org
> Subject: RE: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not
> invoke dnf
>
> > -----Original Message-----
> > From: poky@lists.yoctoproject.org <poky@lists.yoctoproject.org> On
> > Behalf Of John Lemonovich
> > Sent: den 22 mars 2022 19:04
> > To: Alexandre Belloni <alexandre.belloni@bootlin.com>
> > Cc: poky@lists.yoctoproject.org
> > Subject: Re: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could
> > not invoke dnf
> >
> > Thank you for the reply. My apologies, here is the rest:
>
> [cut]
>
> > Transaction Summary
> > ======================================================================
> > ==========
> > Install 25 Packages
> >
> > Total size: 2.0 M
> > Installed size: 3.8 M
> > Downloading Packages:
> > Running transaction check
> > Transaction check succeeded.
> > Running transaction test
> > Error: Transaction test error:
> > file /var/lib conflicts between attempted installs of
> > initscripts-1.0-r155.cortexa9t2hf_neon and
> > base-files-3.0.14-r89.arria10
>
> This means that the two packages are trying to create /var/lib
> differently.
> If you run `rpm -qilvp <path to respective rpm file>`, you should be able
> to tell what the difference is. The rpm files can be found in
> "tmp/deploy/rpm/".
>
> Then you will have to determine what causes this difference in your
> configuration, because they do not differ in a standard poky build.
>
> //Peter
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf
2022-03-23 14:40 ` Peter Kjellerstedt
@ 2022-03-24 18:40 ` John Lemonovich
0 siblings, 0 replies; 8+ messages in thread
From: John Lemonovich @ 2022-03-24 18:40 UTC (permalink / raw)
To: Peter Kjellerstedt, Alexandre Belloni; +Cc: poky
I was getting an error message saying:
ERROR: OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:
Your Python 3 is not a full install. Please install the module distutils.sysconfig (see the Getting Started guide for further information).
The TMPDIR: /us/jlem/xyz_rootfs/a10/build/tmp can't be located on nfs.
So, I installed Python3 and tried again with a fresh checkout on a local directory for my VM, and it appears that is working!
-----Original Message-----
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Sent: Wednesday, March 23, 2022 10:41 AM
To: John Lemonovich <john.lemonovich@foresys.com>; Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: poky@lists.yoctoproject.org
Subject: RE: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf
> -----Original Message-----
> From: John Lemonovich <john.lemonovich@foresys.com>
> Sent: den 23 mars 2022 15:01
> To: John Lemonovich <john.lemonovich@foresys.com>; Peter Kjellerstedt
> <peter.kjellerstedt@axis.com>; Alexandre Belloni
> <alexandre.belloni@bootlin.com>
> Cc: poky@lists.yoctoproject.org
> Subject: RE: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could
> not invoke dnf
>
> Or... is it the different permissions on the /var/lib directory itself ?
Yes, it is. Everything about a directory must match for dnf/rpm to allow it to be created by multiple packages.
In this case it seems the initscripts package you use has the wrong permissions for /var/lib as it shall be 0755, not 0750. AFAICT, the recipe in meta has created /var/lib with mode 0755 since the creation of /var/lib/urandom was introduced in 2012 so it must be something in one of your layers that change the behavior of the initscripts package.
//Peter
> -----Original Message-----
> From: poky@lists.yoctoproject.org <poky@lists.yoctoproject.org> On
> Behalf Of John Lemonovich via lists.yoctoproject.org
> Sent: Wednesday, March 23, 2022 9:49 AM
> To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>; Alexandre
> Belloni <alexandre.belloni@bootlin.com>
> Cc: poky@lists.yoctoproject.org
> Subject: Re: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could
> not invoke dnf
>
> Hi Peter,
>
> Thanks for the reply. I looked at it and here is the difference. Is
> it a problem that each one needs a different subdirectory within /var/lib/ ?
>
> From tmp/deploy/rpm/cortexa9t2hf_neon/initscripts-1.0-r155.cortexa9t2hf_neon.rpm :
> drwxr-x--- 2 root root 0 Apr 5 2011 /var/lib
> drwxr-xr-x 2 root root 0 Apr 5 2011 /var/lib/urandom
>
> From tmp/deploy/rpm/arria10/base-files-3.0.14-r89.arria10.rpm:
> drwxr-xr-x 2 root root 0 Apr 5 2011 /var/lib
> drwxr-xr-x 2 root root 0 Apr 5 2011 /var/lib/misc
>
>
> I'm not sure what's causing the problem with the configuration - the
> steps to create the rootfs are given from Intel/Rocketboards and I
> would presume worked at some point. However, I will say that it's
> more common than not for a given set of build commands/steps to NOT
> work by default without problems...
>
> Thanks,
> John
>
>
> -----Original Message-----
> From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> Sent: Wednesday, March 23, 2022 6:21 AM
> To: John Lemonovich <john.lemonovich@foresys.com>; Alexandre Belloni
> <alexandre.belloni@bootlin.com>
> Cc: poky@lists.yoctoproject.org
> Subject: RE: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could
> not invoke dnf
>
> > -----Original Message-----
> > From: poky@lists.yoctoproject.org <poky@lists.yoctoproject.org> On
> > Behalf Of John Lemonovich
> > Sent: den 22 mars 2022 19:04
> > To: Alexandre Belloni <alexandre.belloni@bootlin.com>
> > Cc: poky@lists.yoctoproject.org
> > Subject: Re: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs:
> > Could not invoke dnf
> >
> > Thank you for the reply. My apologies, here is the rest:
>
> [cut]
>
> > Transaction Summary
> > ====================================================================
> > ==
> > ==========
> > Install 25 Packages
> >
> > Total size: 2.0 M
> > Installed size: 3.8 M
> > Downloading Packages:
> > Running transaction check
> > Transaction check succeeded.
> > Running transaction test
> > Error: Transaction test error:
> > file /var/lib conflicts between attempted installs of
> > initscripts-1.0-r155.cortexa9t2hf_neon and
> > base-files-3.0.14-r89.arria10
>
> This means that the two packages are trying to create /var/lib
> differently.
> If you run `rpm -qilvp <path to respective rpm file>`, you should be
> able to tell what the difference is. The rpm files can be found in
> "tmp/deploy/rpm/".
>
> Then you will have to determine what causes this difference in your
> configuration, because they do not differ in a standard poky build.
>
> //Peter
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-03-24 18:40 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-22 15:56 ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf john.lemonovich
2022-03-22 17:23 ` [poky] " Alexandre Belloni
2022-03-22 18:03 ` John Lemonovich
2022-03-23 10:21 ` Peter Kjellerstedt
2022-03-23 13:48 ` John Lemonovich
[not found] ` <16DF06ACABF4E6A1.29582@lists.yoctoproject.org>
2022-03-23 14:01 ` John Lemonovich
2022-03-23 14:40 ` Peter Kjellerstedt
2022-03-24 18:40 ` John Lemonovich
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.