releasever in a kickstart

Vadym Chepkov vchepkov at gmail.com
Fri Nov 5 17:30:26 UTC 2010


On Nov 5, 2010, at 12:46 PM, James Laska wrote:

> On Thu, 2010-11-04 at 08:18 -0400, Vadym Chepkov wrote:
>> Hi,
>> 
>> I am trying to improve a generic kickstart for Fedora. Since not all packages are present on the DVD for my setup, I have to include "everything" repository:
>> 
>> repo --name="everything" --baseurl=http://mirror.optus.net/fedora/linux/releases/13/Everything/i386/os/
>> 
>> I would like to avoid hardcoding "13" and "i386" and to be able to determine $releasever/$basearch in %pre section, so I don't have to update kickstart with each Fedora release.
> 
> I haven't tried using yum variables in the kickstart 'repo' line.  I
> honestly don't recall whether it works or not.
> 
> Can you confirm that it doesn't work?  I think it might be worth
> considering as a feature request for anaconda/pykickstart.  Of course,
> without digging deeper, I'm not sure what plumbing (if any) would be
> required to enable this.


It doesn't expand them, uses them literally:

install
url --url http://t100.chepkov.lan/linux/fedora/$releasever/$basearch/os/

anaconda stops:

 ┌───────────┤ Error ├────────────┐
 │                                │
 │ Unable to retrieve             │
 │ http://t100.chepkov.lan/linux/ │
 │ fedora/$releasever/$basearch/o │
 │ s//images/install.img.         │
 │                                │
 │            ┌────┐              │
 │            │ OK │              │
 │            └────┘              │
 │                                │
 │                                │
 └────────────────────────────────┘


Here is http server log:

10.10.10.68 - - [05/Nov/2010:17:26:40 +0000] "GET /cfg/c22-fedora.cfg HTTP/1.1" 200 1544 "-" "anaconda/14.22"
10.10.10.68 - - [05/Nov/2010:17:26:40 +0000] "GET /linux/fedora/$releasever/$basearch/os//images/updates.img HTTP/1.1" 404 336 "-" "anaconda/14.22"
10.10.10.68 - - [05/Nov/2010:17:26:40 +0000] "GET /linux/fedora/$releasever/$basearch/os//images/product.img HTTP/1.1" 404 336 "-" "anaconda/14.22"
10.10.10.68 - - [05/Nov/2010:17:26:40 +0000] "GET /linux/fedora/$releasever/$basearch/os//images/install.img HTTP/1.1" 404 336 "-" "anaconda/14.22"

Vadym




More information about the Kickstart-list mailing list