summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/rootfs_rpm.bbclass12
1 files changed, 7 insertions, 5 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index 2d5f51af04..16a96046d2 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -37,6 +37,8 @@ basearch=arm
37EOF 37EOF
38 38
39 #priority=1 39 #priority=1
40 mkdir -p ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM}
41
40 for arch in ${PACKAGE_ARCHS}; do 42 for arch in ${PACKAGE_ARCHS}; do
41 if [ ! -d ${DEPLOY_DIR_RPM}/$arch ]; then 43 if [ ! -d ${DEPLOY_DIR_RPM}/$arch ]; then
42 continue; 44 continue;
@@ -49,13 +51,13 @@ EOF
49 echo "gpgcheck=0" >> ${YUMCONF} 51 echo "gpgcheck=0" >> ${YUMCONF}
50 echo "" >> ${YUMCONF} 52 echo "" >> ${YUMCONF}
51 #priority=$(expr $priority + 5) 53 #priority=$(expr $priority + 5)
54
55 # Copy the packages into the target image
56 # Ugly ugly ugly but rpm is braindead and can't see outside the chroot
57 # when installing :(
58 cp -r ${DEPLOY_DIR_RPM}/$arch ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM}/
52 done 59 done
53 60
54 # Copy the packages into the target image
55 # Ugly ugly ugly but rpm is braindead and can't see outside the chroot
56 # when installing :(
57 mkdir -p ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM}
58 cp -r ${DEPLOY_DIR_RPM}/* ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM}/
59 61
60 #mkdir -p ${IMAGE_ROOTFS}/var/lib/rpm 62 #mkdir -p ${IMAGE_ROOTFS}/var/lib/rpm
61 #rpm --root ${IMAGE_ROOTFS} --initdb 63 #rpm --root ${IMAGE_ROOTFS} --initdb