Bug 460795
| Summary: | /etc/cron.daily/readahead.conf references nonexistent /etc/readahead.d/*.later | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Valdis Kletnieks <valdis.kletnieks> | ||||
| Component: | readahead | Assignee: | Harald Hoyer <harald> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | rawhide | CC: | gene-redhat, h1k6zn2m, harald, michal, poelstra, ville.skytta | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2008-10-18 03:47:30 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 438943 | ||||||
| Attachments: |
|
||||||
|
Description
Valdis Kletnieks
2008-09-01 07:28:19 UTC
Created attachment 315457 [details]
Make readahead.cron look for the right filenames...
I also get an error about /etc/readahead.d/*.early: /etc/cron.daily/readahead.cron: ls: cannot access /etc/readahead.d/*.early: No such file or directory ls: cannot access /etc/readahead.d/*.later: No such file or directory I see it too. Would probably be better to redirect stderr of the "ls" to /dev/null as it's seemingly not at all unlikely that some of the files are not there (for example, I have neither *.later or later.*).
Also, the srpm contains default.{early,later} which are copied into place in %prep and then later simply removed in %install - I suppose those could be just dropped.
Well, really an output from 'ls' should not be used in scripts (unless there are really good reasons and this does not seem to be the case). Quite possibly something like that was intended: FLS=$( shopt -s nullglob; echo $READAHEAD_BASE/*$LTYPE* ) although I am not entirely sure how to guess from what I see. The main loop of this script may look somewhat like that (with possibly different globbing; I cannot really tell): shopt -s nullglob for LTYPE in $TYPES; do FLS=$(echo $READAHEAD_BASE/*custom.$LTYPE) [ -n "$FLS" ] || FLS=$(echo $READAHEAD_BASE/*$LTYPE*) [ -n "$FLS" ] || continue $READAHEAD_CMD ... done will change to a better globbing. rawhide pipes to /dev/null |