Simple kickstart script hangs when adding single package

General support questions
Post Reply
plac
Posts: 2
Joined: 2017/10/23 18:55:28

Simple kickstart script hangs when adding single package

Post by plac » 2017/10/23 19:07:31

Hi,

I am trying to create a customized iso of CentOS 7 minimal install with a few packages of my own. For the first try, I simply added a wget rpm I got from the DVD iso install.
To do that I put the additionnal rpm into the Packages directory of the minimal iso and I am trying to have them installed from the kickstart script. Here's the script:

Code: Select all

auth --enableshadow --passalgo=sha512
cdrom
text

selinux --disabled
ignoredisk --only-use=sda
keyboard --vckeymap=us --xlayouts='us'
lang en_US.UTF-8

rootpw password
timezone America/New_York --isUtc
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
autopart --type=plain
clearpart --all --initlabel
poweroff

%packages
@^minimal
@core
wget # Works great without this line. As soon as I add it, the install hangs. 

%end
I am not too familiar with kickstart so I am not sure where to look at in order to find what is the problem. The main shell displays

Code: Select all

systemd[1]: Relabelled /dev and /run in 31.762ms.
The shell from Alt-F5 (kernel?) shows some systemd warnings about not being able to add dependency jobs.

I do see an error from /tmp/program.log:

Code: Select all

Couldn't find valid filesystem superblock.
Return code: 1
Running... e2fsck -f -p -C 0 /dev/mapper/live-base
/sbin/e2fsck: Operation not permitted while trying to open /dev/mapper/live-base
I am trying this in a VM and and I can see that the disk file hasn't seen anything written to it.
Any idea what might be going wrong?

Thanks!

plac
Posts: 2
Joined: 2017/10/23 18:55:28

Re: Simple kickstart script hangs when adding single package

Post by plac » 2017/10/24 15:24:46

I have identified what my problem is. I missed a crucial step when building my iso which was creating an updated repo with the desired additional package(s).

See part 1 and 3 of http://www.smorgasbork.com/2014/07/16/b ... sc-part-1/ which addresses how to use a comps.xml file to create a repo.

Post Reply