diff options
author | Mei Lei <lei.mei@intel.com> | 2011-12-28 11:22:17 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2012-01-02 20:26:25 -0800 |
commit | 32d308bb38612cef2a98a4c40f058b4db50787aa (patch) | |
tree | 10f83690491fc2335b0b218d0ce519d09b9ae0f8 /meta/classes/rootfs_rpm.bbclass | |
parent | c0fc36f8629a6abb9a7b542df8a2857526547a31 (diff) | |
download | openembedded-core-32d308bb38612cef2a98a4c40f058b4db50787aa.tar.gz openembedded-core-32d308bb38612cef2a98a4c40f058b4db50787aa.tar.bz2 openembedded-core-32d308bb38612cef2a98a4c40f058b4db50787aa.zip |
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]
Signed-off-by: Mei Lei <lei.mei@intel.com>
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 () { mkdir -p ${INSTALL_ROOTFS_RPM}${rpmlibdir} mkdir -p ${INSTALL_ROOTFS_RPM}${rpmlibdir}/log + # After change the __db.* cache size, log file will not be generated automatically, + # that will raise some warnings, so touch a bare log for rpm write into it. + touch ${INSTALL_ROOTFS_RPM}${rpmlibdir}/log/log.0000000001 cat > ${INSTALL_ROOTFS_RPM}${rpmlibdir}/DB_CONFIG << EOF # ================ Environment set_data_dir . |