Signed-off-by: Juergen Borleis <j...@pengutronix.de>
---
 projectroot/usr/lib/systemd/system/logrotate.service | 1 +
 rules/logrotate.in                                   | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/projectroot/usr/lib/systemd/system/logrotate.service 
b/projectroot/usr/lib/systemd/system/logrotate.service
index 722eb85de..40f2a7608 100644
--- a/projectroot/usr/lib/systemd/system/logrotate.service
+++ b/projectroot/usr/lib/systemd/system/logrotate.service
@@ -2,4 +2,5 @@
 Description=logrotate
 
 [Service]
+StateDirectory=logrotate
 ExecStart=/usr/sbin/logrotate /etc/logrotate.conf
diff --git a/rules/logrotate.in b/rules/logrotate.in
index 202dee573..097804017 100644
--- a/rules/logrotate.in
+++ b/rules/logrotate.in
@@ -5,6 +5,7 @@ menuconfig LOGROTATE
        prompt "logrotate                     "
        select LIBPOPT
        select ACL if LOGROTATE_ACL
+       select ROOTFS_VAR_LIB           if RUNTIME
        help
          The logrotate utility is designed to simplify the
          administration of log files on a system which generates a lot
@@ -14,6 +15,9 @@ menuconfig LOGROTATE
          log file gets to a certain size. Normally, logrotate runs as
          a daily cron job.
 
+         Note: on a read-only root filesystem this package still requires a
+         writable '/var/lib' for its run-time information.
+
 if LOGROTATE
 
 config LOGROTATE_ACL
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to