From: Mark Hatle <mark.hatle@windriver.com>
To: "Xu, Dongxiao" <dongxiao.xu@intel.com>
Cc: yocto <yocto@yoctoproject.org>,
"scott.a.garman@intel.com" <scott.a.garman@intel.com>
Subject: Re: Installation order question with RPM backend
Date: Wed, 11 Apr 2012 10:25:40 -0500 [thread overview]
Message-ID: <4F85A274.8010906@windriver.com> (raw)
In-Reply-To: <1334157278.27917.25.camel@dongxiao-osel>
On 4/11/12 10:14 AM, Xu, Dongxiao wrote:
> Hi Mark,
>
> I met a strange issue while using RPM to generate the rootfs.
>
> In the installation list, if we have 2 RPM packages, say A.rpm and
> B.rpm. package A RDEPENDS on package B. While installing the two
> packages? Does RPM ensures to install B first and then install A?
>
> The real issue is: we have certain packages that need to run
> useradd/groupadd at rootfs time, for example, the dbus. However the
> useradd/groupadd bbclass RDEPENDS on base-files, which provides
> the /etc/group file. While installing the final image, sometimes we saw
> it installs dbus firstly and then base-files, causing the
> useradd/groupadd script error since it could not find /etc/group file.
it does enforce install order, however the /etc/group, /etc/passwd files (last
time I checked) were being put into place by the post install scripts. The
scripting order is handled somewhat independently of the package install order.
(post install scripts get delayed intentionally for performance reasons.
There is a way to hint a dependency for them as well...)
The passwd/group files are fairly unique files, and generally are installed
-first- (individually) before any other packages on most RPM installations.
After that the methods and install ordering works...
--Mark
> I tried ipk and it doesn't have problem since it ensures to install
> base-files firstly.
>
> Any comment is welcome.
>
> Thanks,
> Dongxiao
>
next prev parent reply other threads:[~2012-04-11 15:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-11 15:14 Installation order question with RPM backend Xu, Dongxiao
2012-04-11 15:25 ` Mark Hatle [this message]
2012-04-11 15:37 ` Xu, Dongxiao
2012-04-11 15:45 ` Mark Hatle
2012-04-11 15:51 ` Xu, Dongxiao
2012-04-11 15:56 ` Mark Hatle
2012-04-11 16:04 ` Xu, Dongxiao
2012-04-11 16:06 ` Richard Purdie
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=4F85A274.8010906@windriver.com \
--to=mark.hatle@windriver.com \
--cc=dongxiao.xu@intel.com \
--cc=scott.a.garman@intel.com \
--cc=yocto@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.