summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_rpm.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r--meta/classes/package_rpm.bbclass32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 097fa1227a..b84c0441b4 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -454,6 +454,38 @@ EOF
454 454
455 chmod 0755 ${WORKDIR}/scriptlet_wrapper 455 chmod 0755 ${WORKDIR}/scriptlet_wrapper
456 456
457 # Configure RPM... we enforce these settings!
458 mkdir -p ${target_rootfs}${rpmlibdir}
459 mkdir -p ${target_rootfs}${rpmlibdir}/log
460 # After change the __db.* cache size, log file will not be generated automatically,
461 # that will raise some warnings, so touch a bare log for rpm write into it.
462 touch ${target_rootfs}${rpmlibdir}/log/log.0000000001
463 cat > ${target_rootfs}${rpmlibdir}/DB_CONFIG << EOF
464# ================ Environment
465set_data_dir .
466set_create_dir .
467set_lg_dir ./log
468set_tmp_dir ./tmp
469set_flags db_log_autoremove on
470
471# -- thread_count must be >= 8
472set_thread_count 64
473
474# ================ Logging
475
476# ================ Memory Pool
477set_cachesize 0 1048576 0
478set_mp_mmapsize 268435456
479
480# ================ Locking
481set_lk_max_locks 16384
482set_lk_max_lockers 16384
483set_lk_max_objects 16384
484mutex_set_max 163840
485
486# ================ Replication
487EOF
488
457 # RPM is special. It can't handle dependencies and preinstall scripts correctly. Its 489 # RPM is special. It can't handle dependencies and preinstall scripts correctly. Its
458 # probably a feature. The only way to convince rpm to actually run the preinstall scripts 490 # probably a feature. The only way to convince rpm to actually run the preinstall scripts
459 # for base-passwd and shadow first before installing packages that depend on these packages 491 # for base-passwd and shadow first before installing packages that depend on these packages