summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2011-03-07 13:11:25 +0100
committerHarald Hoyer <harald@redhat.com>2011-03-07 13:37:19 +0100
commit62d0c4e7c1bd92cac7d1a791a96c31f563ced639 (patch)
tree249878c4528f4d2af40080435985a701909274e9
parent0b440844bdaa8ca85fc6bc2bc9aab38b0aa7ebe9 (diff)
downloaddracut-62d0c4e7c1bd92cac7d1a791a96c31f563ced639.tar.gz
dracut-62d0c4e7c1bd92cac7d1a791a96c31f563ced639.tar.bz2
dracut-62d0c4e7c1bd92cac7d1a791a96c31f563ced639.zip
dracut.spec: add dracut logrotate
-rw-r--r--dracut.logrotate7
-rw-r--r--dracut.spec4
2 files changed, 11 insertions, 0 deletions
diff --git a/dracut.logrotate b/dracut.logrotate
new file mode 100644
index 00000000..e7d4f0a5
--- /dev/null
+++ b/dracut.logrotate
@@ -0,0 +1,7 @@
+/var/log/dracut.log {
+ missingok
+ notifempty
+ size 30k
+ yearly
+ create 0600 root root
+}
diff --git a/dracut.spec b/dracut.spec
index 86c1db87..0f426119 100644
--- a/dracut.spec
+++ b/dracut.spec
@@ -192,6 +192,9 @@ rm $RPM_BUILD_ROOT/sbin/mkinitrd
rm $RPM_BUILD_ROOT/sbin/lsinitrd
%endif
+mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d/dracut
+install -m 0644 dracut.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/dracut
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -214,6 +217,7 @@ rm -rf $RPM_BUILD_ROOT
%config(noreplace) /etc/dracut.conf.d/01-dist.conf
%endif
%dir /etc/dracut.conf.d
+%config(noreplace) /etc/logrotate.d/dracut
%{_mandir}/man8/dracut.8*
%{_mandir}/man7/dracut.kernel.7*
%{_mandir}/man5/dracut.conf.5*