Bug 869758
| Summary: | custom repos available at install time containing var (ie $basearch) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | MikeBoswell <mboswell> | ||||
| Component: | scheduler | Assignee: | Dan Callaghan <dcallagh> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Qixiang Wan <qwan> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 0.9 | CC: | asaha, bhu, bpeck, davids, dcallagh, jburke, jstancek, mishin, qwan, rglasz, rmancy, santiago | ||||
| Target Milestone: | 0.11 | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Linux | ||||||
| Whiteboard: | Kickstart | ||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 880039 (view as bug list) | Environment: | |||||
| Last Closed: | 2013-01-17 04:35:00 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
MikeBoswell
2012-10-24 18:26:46 UTC
It would be nice if Beaker could substitute $basearch and $releasever and put the right URL into the repo command for Anaconda. But there's no way we can do that correctly. Yum has a *lot* of complicated logic for figuring out $basearch [1] and $releasever comes from whatever RPM provides redhat-release or whatever. So there's no practical way for Beaker to figure this stuff out for you. I think the best we can do here is to exclude any repos with a $ variable from Anaconda, so that it doesn't get confused and hang the installation. I'm also not sure why you have escaped the $ in your repo URL? Is that to work around an escaping bug in Beaker? If so I would like to fix that. [1] http://yum.baseurl.org/gitweb?p=yum.git;a=blob;f=rpmUtils/arch.py;hb=HEAD (In reply to comment #1) > I'm also not sure why you have escaped the $ in your repo URL? Is that to > work around an escaping bug in Beaker? If so I would like to fix that. The extract you refer to is from our XSLT template. In XSLT, you need to escape the $ character, otherwise it's considered a local XSLT variable. Running '\$basearch' through an XSLT processor results in '$basearch' in the XML output. (In reply to comment #3) Right, Beaker uses a bash heredoc like <<EOF to write out the repo configurations to /etc/yum.repos.d/ so $basearch is interpreted as a shell variable. We should be using <<"EOF" instead. I will clone a new bug for that. (In reply to comment #4) > I will clone a new bug for that. Bug 880039. On Gerrit: http://gerrit.beaker-project.org/1514 Beaker 0.11.0 has been released. |