mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
So far the idea was that the default is 'auto', and if appropriate, the distribution will create /var/log/journal/ to tell journald to use persistent mode. This doesn't work well with factory resets, because after a factory reset obviously /var/log is gone. That old default was useful when journald was new and people were reluctant to enable persistent mode and instead relied on rsyslog and such for the persistent storage. But nowadays that is rarer, and anyway various features like user journals only work with persistent storage, so we want people to enable this by default. Add an option to flip the default and distributions can opt in. The default default value remains unchanged. (I also tested using tmpfiles to instead change this, since we already set access mode for /var/log/journal through tmpfiles. Unfortunately, tmpfiles runs too late, after journald has already started, so if tmpfiles creates the directory, it'll only be used after a reboot. This probably could be made to work by adding a new service to flush the journal, but that becomes complicated and we lose the main advantage of simplicity.) Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1387796.
126 KiB
126 KiB