mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
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:
@@ -37,6 +37,10 @@ fakeroot rootfs_rpm_do_rootfs () {
|
|||||||
mkdir -p ${IMAGE_ROOTFS}/etc/rpm/
|
mkdir -p ${IMAGE_ROOTFS}/etc/rpm/
|
||||||
echo "${TARGET_ARCH}-linux" >${IMAGE_ROOTFS}/etc/rpm/platform
|
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...
|
# Setup manifest of packages to install...
|
||||||
mkdir -p ${IMAGE_ROOTFS}/install
|
mkdir -p ${IMAGE_ROOTFS}/install
|
||||||
echo "# Install manifest" > ${IMAGE_ROOTFS}/install/install.manifest
|
echo "# Install manifest" > ${IMAGE_ROOTFS}/install/install.manifest
|
||||||
|
|||||||
Reference in New Issue
Block a user