From: "Peter Kjellerstedt" <peter.kjellerstedt@axis.com>
To: John Lemonovich <john.lemonovich@foresys.com>,
Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: "poky@lists.yoctoproject.org" <poky@lists.yoctoproject.org>
Subject: Re: [poky] ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf
Date: Wed, 23 Mar 2022 14:40:54 +0000 [thread overview]
Message-ID: <10ee9efc9517420ea1107e175506dde9@axis.com> (raw)
In-Reply-To: <MN2PR11MB3887199D7EB82A8E32438CAAE1189@MN2PR11MB3887.namprd11.prod.outlook.com>
> -----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
next prev parent reply other threads:[~2022-03-23 14:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2022-03-24 18:40 ` John Lemonovich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=10ee9efc9517420ea1107e175506dde9@axis.com \
--to=peter.kjellerstedt@axis.com \
--cc=alexandre.belloni@bootlin.com \
--cc=john.lemonovich@foresys.com \
--cc=poky@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.