[Git-commits] [grml/grml-live] a4d3b3: Ship custom tmpfiles.d configuration to avoid man-...

Michael Prokop noreply at github.com
Thu Feb 2 17:22:31 CET 2023


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml-live
  Commit: a4d3b318439a047a6676605bd29e9c850cc17415
      https://github.com/grml/grml-live/commit/a4d3b318439a047a6676605bd29e9c850cc17415
  Author: Michael Prokop <mika at grml.org>
  Date:   2023-02-02 (Thu, 02 Feb 2023)

  Changed paths:
    A etc/grml/fai/config/files/etc/tmpfiles.d/man-db.conf/GRMLBASE
    A etc/grml/fai/config/scripts/GRMLBASE/85-systemd

  Log Message:
  -----------
  Ship custom tmpfiles.d configuration to avoid man-db cache removal

The default /usr/lib/tmpfiles.d/man-db.conf configuration includes:

  d /var/cache/man 0755 man man 1w

The systemd-tmpfiles-clean.timer runs 15 minutes after system bootup
(and then once per day). On our live system the mandb cache directory
/var/cache/man dates to the build time of the ISO, which of course
usually is older than one week. Then as soon as the
systemd-tmpfiles-clean.service is executed the mandb cache gets removed
and apropos(1) no longer works (at least until mandb gets executed
again).

Avoid this /var/cache/man removal by overriding the default
configuration file with a /etc/tmpfiles.d/man-db.conf configuration that
doesn't set the age option ("1w").

Credits to @2f2a for the bug report and @jkirk for assistance in debugging

Closes: https://github.com/grml/grml/issues/201
Thanks: 2f2a and Darshaka Pathirana




More information about the Git-commits mailing list