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>
This commit is contained in:
Mark Hatle 2010-09-29 12:17:36 -05:00 committed by Saul Wold
parent c9e6f53a11
commit fad896d4ea
1 changed files with 4 additions and 0 deletions

View 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