[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>
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