diff options
author | Mei Lei <lei.mei@intel.com> | 2011-12-28 11:22:17 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-03 12:14:26 +0000 |
commit | 86e3dff276f79b1dd801d296663439f038393948 (patch) | |
tree | fc70d4b6a214b0329c3bbb22c868e8ef29b42be6 /meta/classes/rootfs_rpm.bbclass | |
parent | 38c2f66ea79f3ee3fed1757160340548e7687181 (diff) | |
download | poky-86e3dff276f79b1dd801d296663439f038393948.tar.gz |
rpm: Fix rpm database files capacity issue.
Tune the __db* size in DB_CONFIG.
This will reduce the __db* size from 62MB to 26MB in qemu.
[YOCTO #1769]
(From OE-Core rev: 32d308bb38612cef2a98a4c40f058b4db50787aa)
Signed-off-by: Mei Lei <lei.mei@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r-- | meta/classes/rootfs_rpm.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass index 30f3783e3c..999b8a6c86 100644 --- a/meta/classes/rootfs_rpm.bbclass +++ b/meta/classes/rootfs_rpm.bbclass | |||
@@ -61,6 +61,9 @@ fakeroot rootfs_rpm_do_rootfs () { | |||
61 | 61 | ||
62 | mkdir -p ${INSTALL_ROOTFS_RPM}${rpmlibdir} | 62 | mkdir -p ${INSTALL_ROOTFS_RPM}${rpmlibdir} |
63 | mkdir -p ${INSTALL_ROOTFS_RPM}${rpmlibdir}/log | 63 | mkdir -p ${INSTALL_ROOTFS_RPM}${rpmlibdir}/log |
64 | # After change the __db.* cache size, log file will not be generated automatically, | ||
65 | # that will raise some warnings, so touch a bare log for rpm write into it. | ||
66 | touch ${INSTALL_ROOTFS_RPM}${rpmlibdir}/log/log.0000000001 | ||
64 | cat > ${INSTALL_ROOTFS_RPM}${rpmlibdir}/DB_CONFIG << EOF | 67 | cat > ${INSTALL_ROOTFS_RPM}${rpmlibdir}/DB_CONFIG << EOF |
65 | # ================ Environment | 68 | # ================ Environment |
66 | set_data_dir . | 69 | set_data_dir . |