summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-08-13 14:11:50 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-16 11:14:13 +0100
commitd073ca77ba886c7912abd3ec0640881c00aea3bb (patch)
tree592e6a5bc7f6ebe6aba0d85d0505e8d834d1a80b /meta
parent1fcf718e3a1e50446ab61972069566e5016bc625 (diff)
downloadopenembedded-core-d073ca77ba886c7912abd3ec0640881c00aea3bb.tar.gz
openembedded-core-d073ca77ba886c7912abd3ec0640881c00aea3bb.tar.bz2
openembedded-core-d073ca77ba886c7912abd3ec0640881c00aea3bb.zip
image.bbclass: create device table after package installation
Now that the makedevs supports using user/group names in the devcie table files, and it uses passwd and group files under the rootfs which is provided by the base-passwd package, we should let package installation finish first, so that makedevs can get a correct mapping from user/group names to uid/gid. The check for existence of ${IMAGE_ROOTFS}/dev is removed. This is because do_rootfs doesn't have 'nostamp' flag any more, so the do_rootfs task will not be rerun for every build. Checking for the existence of ${IMAGE_ROOTFS}/dev is not necessary any more. Besides, as base-files package also installs the /dev directory, this checking does not serve as a good criteria. [YOCTO #1159] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/image.bbclass8
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 4aae3a7819..494664627d 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -297,9 +297,9 @@ fakeroot do_rootfs () {
# copy the intercept scripts
cp ${COREBASE}/scripts/postinst-intercepts/* ${WORKDIR}/intercept_scripts/
- # If "${IMAGE_ROOTFS}/dev" exists, then the device had been made by
- # the previous build
- if [ "${USE_DEVFS}" != "1" -a ! -r "${IMAGE_ROOTFS}/dev" ]; then
+ rootfs_${IMAGE_PKGTYPE}_do_rootfs
+
+ if [ "${USE_DEVFS}" != "1" ]; then
for devtable in ${@get_devtable_list(d)}; do
# Always return ture since there maybe already one when use the
# incremental image generation
@@ -307,8 +307,6 @@ fakeroot do_rootfs () {
done
fi
- rootfs_${IMAGE_PKGTYPE}_do_rootfs
-
# remove unneeded packages/files from the final image
rootfs_remove_unneeded