systemd/postmarketos-base-systemd: lower system limit for journald

This sets the max disk space used by journald logs to 1GB (systemd
default is 4GB). This seems like a good trade-off between having access
to more older logs in case there are transient issues that need debug
or we need to understand system behavior long term, and not filling too much
space on devices with little storage.

If a device is really constrained for space, the device package
can ship an override file in journald.conf.d to lower this limit
even further. Users/system admins can also override this value in
/etc/systemd/journald.conf.d.

Fixes #4389

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8156>
This commit is contained in:
Clayton Craft 2026-03-11 21:47:45 -07:00 committed by The Friendly Meow (merge) Bot
parent 3df5cc176b
commit b383547b54
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View file

@ -2,7 +2,7 @@
# pmbootstrap installs this, if systemd is selected in "pmbootstrap init".
maintainer="Oliver Smith <ollieparanoid@postmarketos.org>"
pkgname=postmarketos-base-systemd
pkgver=71
pkgver=72
pkgrel=0
pkgdesc="Meta package for running postmarketOS with systemd"
url="https://postmarketos.org"
@ -59,6 +59,7 @@ _source644="
etc/systemd/logind.conf
usr/share/mkinitfs/files-extra/01-initramfs-base-systemd.files
usr/lib/NetworkManager/conf.d/50-dns.conf
usr/lib/systemd/journald.conf.d/10-postmarketos.conf
usr/lib/systemd/system-preset/90-base.preset
usr/lib/systemd/system/-.slice.d/10-oomd-defaults.conf
usr/lib/systemd/system/system.slice.d/10-oomd-defaults.conf
@ -107,6 +108,7 @@ sha512sums="
2faac294bb632762e247b850f09ff4b544ccff6c462efd8d4faca71ba30bdfa9c460377a0dc88e92c5dbbe251017d164064a56ac0e0410f224b45d4f5f81866c rootfs-etc-systemd-logind.conf
15423bfda57c90ab62fe69865ca4072a0aeb83bf77d9c278257e346f4da81843d010b41003c91ae9f3fcb1c67447645e7c19078eea2bf11312051e6ad7523ad1 rootfs-usr-share-mkinitfs-files-extra-01-initramfs-base-systemd.files
94063e3a3f983b7613d9de6bfc067096f79b12688f45667faf968f9a9bae194c4c8e554311f2ab5614edcc4d4499f6d30aa965a67b7417c26ce4d07edc847178 rootfs-usr-lib-NetworkManager-conf.d-50-dns.conf
b7c3e70f5e4d88d6df6a8d58f4bb6af3d3051c5130cf13ad86a491fcbf7a69ae33ba31d663946c35ddaed03a16b6eb9d9d4b7cabcb58bfec7a254920ff375178 rootfs-usr-lib-systemd-journald.conf.d-10-postmarketos.conf
451399fbab8e221fd7019c4f34eb091c880ca5edbb79c09aff02505f79a0ff90276c01b439f73b27825106f054e4ff30572fb7e13eba759c92fa9ee1b80fe0f5 rootfs-usr-lib-systemd-system-preset-90-base.preset
bde7052939d1ddde22fe1df86439d3f1b0cd41810911cee7acf26aac08afe1610360cbbd257b3c1a2e5e7409dff27ade8f3a302a38cd1b99c6cc6eed4cc64a78 rootfs-usr-lib-systemd-system--.slice.d-10-oomd-defaults.conf
bde7052939d1ddde22fe1df86439d3f1b0cd41810911cee7acf26aac08afe1610360cbbd257b3c1a2e5e7409dff27ade8f3a302a38cd1b99c6cc6eed4cc64a78 rootfs-usr-lib-systemd-system-system.slice.d-10-oomd-defaults.conf