]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut.spec: add dracut logrotate
authorHarald Hoyer <harald@redhat.com>
Mon, 7 Mar 2011 12:11:25 +0000 (13:11 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 7 Mar 2011 12:37:19 +0000 (13:37 +0100)
dracut.logrotate [new file with mode: 0644]
dracut.spec

diff --git a/dracut.logrotate b/dracut.logrotate
new file mode 100644 (file)
index 0000000..e7d4f0a
--- /dev/null
@@ -0,0 +1,7 @@
+/var/log/dracut.log {
+    missingok
+    notifempty
+    size 30k
+    yearly
+    create 0600 root root
+}
index 86c1db8767e778357d3b79a221a1b20060374581..0f426119162db88f267c991285242da8a0426c91 100644 (file)
@@ -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*