This doesn't work well as there are too many download sites that throw
HTTP 403's and 404's. However, I figured out (duh) to just add the
metalink repos into the kickstart file, bypassing cobbler. Not the best
but a good workaround. So, I use cobbler to identify my
locally-mirrored distros and repos but then just add repo --mirrorlists
with metalinks in the ks file, along with some ksmeta to make it less
arch-specific ($arch is defined. I had to use ksmeta to define $release):
...
# Use network installation
url --url=$tree
# get the repos for our locally mirrored stuff from cobbler
$yum_repo_stanza
# but since cobbler can't grok metalinks, do these right here (be tricky
with release & arch)
repo --name everything --mirrorlist
https://mirrors.fedoraproject.org/metalink?repo=fedora-$release&arch=...
repo --name updates --mirrorlist
https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releas...
...
I've submitted an RFE to support metalinks in cobbler:
https://fedorahosted.org/cobbler/ticket/652
/a
On 03/20/2011 10:16 PM, Alan Crosswell wrote:
OK, so I can't use a metalink, but can use
http://download.fedoraproject.org/pub/fedora/linux/releases/$release/$bas...
which is what I was trying to do anyway. I did have an error popup a
couple of times during installiton and had to select retry due to a
complaint about a corrupted RPM -- so I guess one of the Fedora mirrors
is messed up (the Anaconda log on tty3 shows HTTP 403 errors from
mirror.cc.vt.edu). It would be nice if Anaconda would automatically
retry a couple of times so I can get a totally hands-off install.... I
think because Anaconda only thinks it's got the one mirror (1/1). Maybe
I can just make two or three repos that are identical copies so Anaconda
will think it has more repos to try....
/a
On 03/07/2011 01:56 AM, Christian Horn wrote:
> On Sun, Mar 06, 2011 at 05:09:19PM -0500, Alan Crosswell wrote:
>> Does cobbler support metalink URLs for repos like those found in
>> /etc/yum.repos.d? Something like (with the variables expanded for the
>> specific release and arch):
>>
>>
https://mirrors.fedoraproject.org/metalink?repo=fedora-14&arch=i386
>>
>> Last time I tried this, I found I had to provide a specific mirror.
> True, doesnt work.
> Apparently to check availability of the mirror 'cobbler reposync' tries
> to fetch 'repodata/repomd.xml'. For a url you have in mind like
>
>
https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
>
> the possible values of $basearch you want to use would have to be guessed
> by reposync.. maybe the check could be disabled. When repos are not to
> be mirrored locally fetching 'repodata/repomd.xml' serves no further
> purpose than 'quick check' as i see it. Might be deeper magic there thou.
>
>
> Christian
>