Hide Forgot
In reply to bug 722794 comment 2, where dracut's log file only rotates "yearly" and not for "size 30k". Please proofread the source code, file config.c method readConfigFile(..) where it parses size and minsize options. It overwrites the "key" variable with the option's value (!) and then still tries to compare the value with the "size" string to enable the ROT_SIZE rotation criterium. $ rpm -q logrotate logrotate-3.7.9-12.fc15.x86_64
Example: For dracut's logrotate config file and size 30k the code overwrites "key" with "30" and then does if (!strncmp(key, "size", 4)) { which fails.
Introduced in 3.7.9.
Thanks, I will fix it upstream and backport the fix to F15
The spelling in the source code is "criterium", that's why I had used that in the bug summary, too.
logrotate-3.7.9-13.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/logrotate-3.7.9-13.fc15
Package logrotate-3.7.9-13.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing logrotate-3.7.9-13.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/logrotate-3.7.9-13.fc15 then log in and leave karma (feedback).
logrotate-3.7.9-13.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.