Bug 273781
Summary: | Testing for Fedora/ directory | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Felix Bellaby <felixbellaby> |
Component: | python-virtinst | Assignee: | Daniel Berrangé <berrange> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | mwc |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-09-12 02:09:12 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: |
Description
Felix Bellaby
2007-09-01 12:13:16 UTC
I can't test for images/xen because this has to work for older Fedora with only bare metal support too. I don't want to just test for 'images/' because other distros use a similar thing. Finally the URI we test for needs to be small to avoid downloading lots of data. So I think I'll make the test look for 'fedora.css' in the top level dir (works for Fedora 8 -> Fedora 5), and if that's missing try 'Fedora/' (which works for versions back to Fedora 1). Fix will be in rawhide shortly * Tue Sep 11 2007 Daniel P. Berrange <berrange> - 0.300.0-2.fc8 - Fixed detection of Fedora 8 distro trees (rhbz #273781) *** Bug 301001 has been marked as a duplicate of this bug. *** You really should define an explicit holder in the distro for identifying a Redhat distro. Perhaps a file called RedHat, with key / value pairs contained within to uniquely identify the release/version. Depending on artifacts of the distro root for this is fraught with peril, as happened with the /Fedora -> /Packages fiasco. So now we're going to do exactly the same thing, and instead use another artifact - fedora.css for this purpose? Great... This will work until someone else innocently renames or replaces this file, not realizing its dual significance. The Fedora distribution tree could usefully include a file to identify it that records the current metadata checksum. This would not only enable yum to determine whether it was looking at a Fedora mirror, but it could also determine whether that mirror was up to date. This would avoid downloading 5-10MB of data simply in order to conclude that a mirror is out of date. The checksum could still be checked against the metadata after it has been downloaded to ensure its integrity. |