summaryrefslogtreecommitdiff
path: root/meta/classes/rootfs_rpm.bbclass
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2010-09-29 12:17:36 -0500
committerSaul Wold <Saul.Wold@intel.com>2010-09-30 10:01:34 -0700
commitfad896d4ea82b1cabcabbdf446a0c237f0005502 (patch)
treed50be6d362e74f77ebd7818ab5d43c3724b99b14 /meta/classes/rootfs_rpm.bbclass
parentc9e6f53a11ae1b7213abc2f5433b0b0680069281 (diff)
downloadopenembedded-core-fad896d4ea82b1cabcabbdf446a0c237f0005502.tar.gz
openembedded-core-fad896d4ea82b1cabcabbdf446a0c237f0005502.tar.bz2
openembedded-core-fad896d4ea82b1cabcabbdf446a0c237f0005502.zip
rootfs_rpm.bbclass: Add Dirnames configuration
[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>
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r--meta/classes/rootfs_rpm.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index 24afac72b4..a57894ae5d 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -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