Tested kickstart file baulks in Centos 7

Neil H Watson asked:

Tried kickstarting CENTOS 7 and got an unexpected message. The kickstart file has worked with 5 and 6 prior. Something has changed. Has anyone run into this?

Installation

 1) [x] Timezone settings                 2) [x] Installation source
        (America/Toronto timezone)               (http://centos.mirror.iweb.ca/7
 3) [!] Software selection                       /os/x86_64/)
        (Installation source not set up   4) [x] Install Destination
        )                                        (Custom partitioning selected)
 5) [x] Network settings
        (Wired (eth0) connected)

Kickstart

install
text
url --url http://centos.mirror.iweb.ca/7/os/x86_64/
lang en_US.UTF-8
keyboard us
network --device eth0 --bootproto dhcp --ipv6 xxxxx::10/64 --gateway xxxxx:1 --nameserver --hostname foo.example.com
rootpw xxxxxxxxxxxxx
firewall --disabled
authconfig --enableshadow --enablemd5
timezone America/Toronto
bootloader --location=mbr --append="rhgb quiet console=tty0 console=ttyS0,115200n8"
user --name=neil --password=xxxxxxxxxxxx
zerombr
clearpart --initlabel --all
part /boot --fstype ext4 --size=200 --ondisk=vda --asprimary
part pv.3 --size=100 --grow --ondisk=vda
volgroup vg01 pv.3
logvol / --fstype ext4 --name=lv01 --vgname=vg01 --size=3072 --grow
logvol swap --fstype swap --name=swaplv01 --vgname=vg01 --size=1024

%packages
--ignoremissing
vim*
tmux
openssl-devel
pcre-devel
make
gcc
fakeroot
%end

Found in the logs:

22:59:18,869 DEBUG packaging: adding yum repo anaconda with baseurl http://centos.mirror.iweb.ca/7/os/x86_64/ and mirrorlist None
22:59:19,036 ERR packaging: base repo (url/http://centos.mirror.iweb.ca/7/os/x86_64/) not valid -- removing it

My answer:


There are two things that can cause this problem:

  1. You specified a repository that doesn’t exist or is invalid.
  2. Something is wrong with your package list.

I checked the repo and it appears correct.

However, your package list doesn’t look right. Specifically:

%packages
--ignoremissing

This should appear on one line, i.e.:

%packages --ignoremissing

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.