]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs_rpm: Add lock file in the rpm deploy directory to allow mutliple rootfs creati...
authorRichard Purdie <rpurdie@linux.intel.com>
Thu, 7 Oct 2010 14:41:17 +0000 (15:41 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 7 Oct 2010 14:41:17 +0000 (15:41 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
meta/classes/image.bbclass
meta/classes/rootfs_rpm.bbclass

index 1b34ac423bcc913d328e5784c106703587fca957..3db34ac1939cf83d48cc5f47bfbdc718b3afa57a 100644 (file)
@@ -90,7 +90,7 @@ LINGUAS_INSTALL = "${@" ".join(map(lambda s: "locale-base-%s" % s, bb.data.getVa
 
 do_rootfs[nostamp] = "1"
 do_rootfs[dirs] = "${TOPDIR}"
-do_rootfs[lockfiles] = "${IMAGE_ROOTFS}.lock"
+do_rootfs[lockfiles] += "${IMAGE_ROOTFS}.lock"
 do_build[nostamp] = "1"
 
 # Must call real_do_rootfs() from inside here, rather than as a separate
index a57894ae5da1556fd557754d29364bd807520c90..f82fcacf5d8b5bdffc90fc156080d8f15a0b9e4f 100644 (file)
@@ -28,6 +28,10 @@ opkglibdir = "${localstatedir}/lib/opkg"
 RPMOPTS="--dbpath ${rpmlibdir} --define='_openall_before_chroot 1'"
 RPM="rpm ${RPMOPTS}"
 
+# RPM doesn't work with multiple rootfs generation at once due to collisions in the use of files 
+# in ${DEPLOY_DIR_RPM}. This can be removed if package_update_index_rpm can be called concurrently
+do_rootfs[lockfiles] += "${DEPLOY_DIR_RPM}/rpm.lock"
+
 fakeroot rootfs_rpm_do_rootfs () {
        set +x