diff options
author | Lei YU <yulei.sh@bytedance.com> | 2020-11-23 06:05:01 +0300 |
---|---|---|
committer | Lei YU <yulei.sh@bytedance.com> | 2021-07-14 10:27:23 +0300 |
commit | 521eaaac1ce6f571037bfa32403ca5f7c02fcc90 (patch) | |
tree | 16fefed7aacd714cbeda3e25b59e593472d86c4d /meta-bytedance/recipes-core/systemd/systemd_%.bbappend | |
parent | 13ec476263e08b950e4d51b640755b86875d4817 (diff) | |
download | openbmc-521eaaac1ce6f571037bfa32403ca5f7c02fcc90.tar.xz |
bytedance: Limit coredump size
Override coredump.conf and set the max size of coredump to 2MiB.
Tested: Verify systemd removes the old coredumps and makes sure the max
size is around 2MiB.
Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: I9ae2ba46edd2b1e1b12537f12ca09f97882a7d40
Diffstat (limited to 'meta-bytedance/recipes-core/systemd/systemd_%.bbappend')
-rw-r--r-- | meta-bytedance/recipes-core/systemd/systemd_%.bbappend | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-bytedance/recipes-core/systemd/systemd_%.bbappend b/meta-bytedance/recipes-core/systemd/systemd_%.bbappend new file mode 100644 index 0000000000..2bdee496b3 --- /dev/null +++ b/meta-bytedance/recipes-core/systemd/systemd_%.bbappend @@ -0,0 +1,3 @@ +do_install_append () { + rm ${D}${sysconfdir}/systemd/coredump.conf +} |