]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs_rpm.bbclass: Add Dirnames configuration
authorMark Hatle <mark.hatle@windriver.com>
Wed, 29 Sep 2010 17:17:36 +0000 (12:17 -0500)
committerSaul Wold <Saul.Wold@intel.com>
Thu, 30 Sep 2010 17:01:34 +0000 (10:01 -0700)
[BUGID #327]

RPM attempts to validate all of the directories on the system are
owned by a package.  While the root "/" directory was not owned, so
in some cases an error could be thrown.  Resolve this by informing
RPM that yes, "/" is in fact a directory on the system that was
properly constructed and is "owned".

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
meta/classes/rootfs_rpm.bbclass

index 24afac72b40a9862af396e78c3c2e2a24b9abba3..a57894ae5da1556fd557754d29364bd807520c90 100644 (file)
@@ -37,6 +37,10 @@ fakeroot rootfs_rpm_do_rootfs () {
        mkdir -p ${IMAGE_ROOTFS}/etc/rpm/
        echo "${TARGET_ARCH}-linux" >${IMAGE_ROOTFS}/etc/rpm/platform
 
+       # Tell RPM that the "/" directory exist and is available
+       mkdir -p ${IMAGE_ROOTFS}/etc/rpm/sysinfo
+       echo "/" >${IMAGE_ROOTFS}/etc/rpm/sysinfo/Dirnames
+
        # Setup manifest of packages to install...
        mkdir -p ${IMAGE_ROOTFS}/install
        echo "# Install manifest" > ${IMAGE_ROOTFS}/install/install.manifest