Kickstart - Error setting up base respository

Issues related to applications and software problems and general support
Post Reply
Posts: 2
Joined: 2021/01/14 19:56:38

Kickstart - Error setting up base respository

Post by schnarff » 2021/01/14 20:16:53

I recently built my first CentOS kickstart config on a CentOS 7 system; it runs well, but the OS and its tools are old enough that it's causing pain with the apps I want to run on top of said system, so I'm trying to port it to CentOS 8.

I've taken the anaconda-ks.cfg file created from a successful manual install, placed it on my DVD ISO, and wrapped things back up like I was doing with CentOS 7. I'm successfully beginning the installation, but running into "Error setting up base repository" - despite having not touched either the filesystem structure of the ISO, or the generated kickstart file that points at my repos.

Here is the relevant config:

Code: Select all

# Use graphical install

repo --name="AppStream" --baseurl=file:///run/install/sources/mount-0000-cdrom/AppStream



# Keyboard layouts
keyboard --xlayouts='us'
# System language
lang en_US.UTF-8

# Network information
network  --hostname=localhost.localdomain

# Use CDROM installation media

# Run the Setup Agent on first boot
firstboot --enable

ignoredisk --only-use=sda
# Partition clearing information
clearpart --none --initlabel

# System timezone
timezone America/New_York --isUtc

%addon com_redhat_kdump --enable --reserve-mb='auto'


pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
When I switched over to a console to try to troubleshoot this, I noticed that /run/install/sources/mount-0000-cdrom/AppStream didn't exist (the "mount-0000-cdrom" directory is empty), but /run/install/repo/AppStream does, and appears to have all the right information within it. I've tried specifying that directory as the baseurl instead, and get no difference in behavior.

The only other file I've touched is isolinux/isolinux.cfg on the DVD, with the relevant line now being:

Code: Select all

append initrd=initrd.img inst.ks=cdrom:/ks.cfg inst.stage2=hd:LABEL=CentOS-Stream-8-x86_64-dvd quiet
What am I doing wrong here? This seems like basic config, but obviously I've missed something...

User avatar
Forum Moderator
Posts: 30358
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Kickstart - Error setting up base respository

Post by TrevorH » 2021/01/14 23:28:45

did you put the right label on it?
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Posts: 2
Joined: 2021/01/14 19:56:38

Re: Kickstart - Error setting up base respository

Post by schnarff » 2021/01/18 21:27:13

Right label, as in a label on the DVD that matches my isolinux.cfg configuration? If so, then yes.

Post Reply

Return to “CentOS 8 - General Support”