diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2010-09-29 12:17:36 -0500 |
---|---|---|
committer | Saul Wold <Saul.Wold@intel.com> | 2010-09-30 10:01:34 -0700 |
commit | fad896d4ea82b1cabcabbdf446a0c237f0005502 (patch) | |
tree | d50be6d362e74f77ebd7818ab5d43c3724b99b14 | |
parent | c9e6f53a11ae1b7213abc2f5433b0b0680069281 (diff) | |
download | poky-fad896d4ea82b1cabcabbdf446a0c237f0005502.tar.gz |
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>
-rw-r--r-- | meta/classes/rootfs_rpm.bbclass | 4 |
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 () { | |||
37 | mkdir -p ${IMAGE_ROOTFS}/etc/rpm/ | 37 | mkdir -p ${IMAGE_ROOTFS}/etc/rpm/ |
38 | echo "${TARGET_ARCH}-linux" >${IMAGE_ROOTFS}/etc/rpm/platform | 38 | echo "${TARGET_ARCH}-linux" >${IMAGE_ROOTFS}/etc/rpm/platform |
39 | 39 | ||
40 | # Tell RPM that the "/" directory exist and is available | ||
41 | mkdir -p ${IMAGE_ROOTFS}/etc/rpm/sysinfo | ||
42 | echo "/" >${IMAGE_ROOTFS}/etc/rpm/sysinfo/Dirnames | ||
43 | |||
40 | # Setup manifest of packages to install... | 44 | # Setup manifest of packages to install... |
41 | mkdir -p ${IMAGE_ROOTFS}/install | 45 | mkdir -p ${IMAGE_ROOTFS}/install |
42 | echo "# Install manifest" > ${IMAGE_ROOTFS}/install/install.manifest | 46 | echo "# Install manifest" > ${IMAGE_ROOTFS}/install/install.manifest |