From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 30D0AE0070C for ; Wed, 11 Apr 2012 08:17:24 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 11 Apr 2012 08:17:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="152410648" Received: from dongxiao-osel.sh.intel.com (HELO [10.239.36.11]) ([10.239.36.11]) by fmsmga002.fm.intel.com with ESMTP; 11 Apr 2012 08:17:23 -0700 From: "Xu, Dongxiao" To: Mark Hatle Date: Wed, 11 Apr 2012 23:14:38 +0800 Message-ID: <1334157278.27917.25.camel@dongxiao-osel> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Cc: yocto , "scott.a.garman@intel.com" Subject: Installation order question with RPM backend X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2012 15:17:24 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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. I tried ipk and it doesn't have problem since it ensures to install base-files firstly. Any comment is welcome. Thanks, Dongxiao