kickstart ks.cfg: Where should `url --url` point?

12,586

Solution 1

I have a 5.3 and 5.4 serving on a custom ks.cfg file. My line looks like this:

url --url http://long-path-to-your-distro/x86_64/5.3 -- or 5.4 -- no trailing slash, but it shouldn't matter.

and in there I have:

./
../
CentOS/
config/
EULA
GPL
images/
isolinux/
NOTES/
repodata/
RPM-GPG-KEY-beta
RPM-GPG-KEY-CentOS-5
TRANS.TBL

Solution 2

You should point it at the path that contains the .discinfo file and/or the repodata/ directory.

Share:
12,586

Related videos on Youtube

Stefan Lasiewski
Author by

Stefan Lasiewski

Stefan Lasiewski Daddy, Linux Guy, Bicyclist, Tinkerer, Fixer & Breaker of things. I work as a Senior SYstem Engineer at the National Energy Research Scientific Computing Center (NERSC) Division at Lawrence Berkeley National Laboratory (LBNL) in Berkeley, CA. Father of 3 cute children. Yes I'm a sysadmin and a parent. Heavy user of CentOS, RHEL & FreeBSD for production services at work. I also run Ubuntu at home, for the simplicity. I'm a fan of Apache HTTP Server, Nagios & Cacti. Original proposer of unix.stackexchange.com (Yes, this proposal predated askubuntu.com, and I wish they would have merged with the Unix proposal.).

Updated on September 17, 2022

Comments

  • Stefan Lasiewski
    Stefan Lasiewski over 1 year

    I have a kickstart file (ks.cfg) on a floppy (Old style). I am trying to install CentOS 5.4.

    The top of my ks.cfg says this:

    install
    
    # Install from local cdrom or over the network.
    #cdrom
    url --url http://kickstart.example.org/pub/centos/5.4/
    

    On the Apache server side, this command is failing with these 404s:

    kickstart.example.org 192.168.16.180 - - [01/Jun/2010:17:24:30 -0700] "GET /pub/centos/5.4///disc1/.discinfo HTTP/1.1" 404 314 "-" "urlgrabber/3.1.0"
    kickstart.example.org 192.168.16.180 - - [01/Jun/2010:17:24:43 -0700] "GET /pub/centos/5.4/repodata/repomd.xml HTTP/1.1" 404 316 "-" "urlgrabber/3.1.0 yum/3.2.22"
    

    It seems that the value of my url doesn't match the directory structure on the server, but this is an exact mirror of the CentOS mirrors.

    What should the value of url URL be? Should this only include the OS (/pub/centos/5.4/), or should it include the architecture (/pub/centos/5.4/os/x86_64 )? Can this be a variable (/pub/centos/5.4/os/$ARCH/)?

    I see that Kickstart is trying to grab a file called 'repomd.xml', but why is it looking in '/pub/centos/5.4/repodata/repomd.xml', when these files actually exist at '/pub/centos/5.4/os/x86_64/repodata/repomd.xml' and other locations at '/pub/centos/5.4/*/$ARCH/repodata/repomd.xml'?

    I don't see this documented or explained well in the RedHat 5 Installation Guide

  • Stefan Lasiewski
    Stefan Lasiewski almost 14 years
    So I need to set something like 'url --url mirrors.kernel.org/centos/5.4/os/x86_64' instead of 'url --url mirrors.kernel.org/centos/5.4'?
  • Ignacio Vazquez-Abrams
    Ignacio Vazquez-Abrams almost 14 years
    If that's where .discinfo and repodata/ are located, then yes.
  • Stefan Lasiewski
    Stefan Lasiewski almost 14 years
    This works, but I wish the '--url' flag was explained better somewhere.
  • Oscar Gonzalez
    Oscar Gonzalez almost 14 years
    thanks for upvoting the answer. BTW, I just put out my notes on doing pxe boot for 5.4 Centos. They might help: notagrouch.com/linux/centos-54-pxe-boot.html