Questions tagged [kickstart]

The kickstart file is a file that is read during the installation of RHEL/CentOS software that automates the installation process.

159 questions
8
votes
3 answers

What commands are available in the %pre section of a Kickstart file on CentOS?

Environment: CentOS 5.5 and 6.4 I have a request to analyze the hardware before installation to make sure our customers don't install our software on sub-standard server hardware. For example, examining memory, disk space, CPU, network card... …
GoinOff
  • 589
  • 3
  • 13
  • 27
7
votes
1 answer

Import EPEL GPG key in kickstart post-installation

I'm trying to use Oz to create a CentOS 6.4 virtual machine image and install some packages from EPEL. When it tries to install the epel-release package, I get the error: Public key for epel-release-6-8.noarch.rpm is not installed I can pass a…
Lorin Hochstein
  • 8,077
  • 17
  • 50
  • 56
7
votes
4 answers

How can I background a shell script during a Kickstart?

I have a Red Hat Kickstart process which reports its progress at key points via a POST request to a status server. This is fine during %pre and %post, but when the actual build is taking place between them, it's an informational black hole. I've…
bxm
  • 4,561
  • 1
  • 20
  • 21
7
votes
4 answers

USB set to /dev/sda instead of /dev/sdb

I've been trying to use a kickstart file to guide the Red Hat installer (RHEL6.5) without user intervention. It correctly looks for the kickstart file in /dev/sdb/fs.cfg, but because the USB is recognized as /dev/sda, it is actually located at…
skamazin
  • 269
  • 1
  • 3
  • 9
6
votes
1 answer

Kickstart: is it possible to partition without a mount point?

I would like to partition a disk, but some partitions should not be mounted, so far I have to following workaround : part /srv/tmp1 --fstype=ext4 --size=1000 --ondisk=sda then in a post-install script the partition is removed from fstab, /srv/tmp1…
willll
  • 161
  • 1
  • 4
6
votes
1 answer

Differences between %pre and %post in Kickstart on CentOS?

I have been setting up machines with Kickstart on CentOS and I am unsure about the differences between the %pre and %post sections of the kickstart .cfg file. The CentOS Documentation for the Pre-Installation Script states: You can add commands to…
Nathan McCoy
  • 879
  • 8
  • 15
5
votes
1 answer

How to override anaconda/kickstart package ordering?

I am building a bootable ISO to be used to install a Linux image (Oracle Linux, 5.8). This is using anaconda with a kickstart file to select the packages to be loaded. Some of these packages are failing with dependency problems in their %post…
5
votes
2 answers

How can I serve a Kickstart file over the network without a DHCP server?

I want to install CentOS 5.5 on two systems. I have a kickstart file. I would like to install CentOS on a system using this kickstart file. I'm reading the instructions provided by fedoraproject.org and RedHat.com, but they suggest using a DHCP…
Stefan Lasiewski
  • 19,264
  • 24
  • 70
  • 85
5
votes
5 answers

Red Hat 7.4: How to inject kickstart file into USB media for UEFI-only system?

I am trying to build an installation image (to be transferred to USB media) for Red Hat Linux 7.4 with a custom kickstart file, and the corresponding ks= argument added to grub, but and can't figure out how to do it. Here are the approaches I have…
Kevin Keane
  • 619
  • 7
  • 14
5
votes
2 answers

How to guarantee that kickstart installation will select a certain drive?

We're upgrading from RHEL6 --> CentOS 7. The host in question has the OS on /dev/sda, and has some supplementary data drives at /dev/sdb and /dev/sdc. When I run the kickstart installation, I obviously want the content of /dev/sda (old OS) to be…
CptSupermrkt
  • 1,492
  • 5
  • 16
  • 26
5
votes
2 answers

Which URL to use for the Fedora EPEL repo mirrorlist in a kickstart config?

I am writing a kickstart file to configure a CentOS 7 installation. I'd like to install some packages from the Fedora EPEL repository, so I'm adding a repo command to the configuration. I'm having trouble finding the canonical URL I should use for…
sourcenouveau
  • 676
  • 3
  • 9
  • 19
5
votes
4 answers

Automate DISA STIG controls for RHEL/CentOS?

I am deploying systems that must be configured using the Red Hat 6 (v1r2) Security Technical Implementation Guide(STIG) published by the Defense Information Systems Agency (DISA). Link to site. I've started developing a Kickstart file to automate…
0xSheepdog
  • 2,742
  • 1
  • 20
  • 31
4
votes
2 answers

Install 32-bit library packages on 64-bit rhel 6.2 during installation of os

I want full installation of rhel-server-6.2-x86_64. Within this setup, I want to install some of 32bit glibc packages before completion of installation, which already available in rhel-server-6.2-x86_64-dvd. I select all optional packages during…
krupal
  • 181
  • 1
  • 5
4
votes
1 answer

Logging %pre during kickstart - logfile doesn't exist after boot

I am kickstarting several EL6 systems and I want to log the actions taken in my %pre section. I know that I can log the %post section per the hints provided by centos.org: Tips and tricks for anaconda and kickstart using one of these two…
Stefan Lasiewski
  • 19,264
  • 24
  • 70
  • 85
4
votes
1 answer

CentOS 7 Install: Error populating transaction

I am having a yum issue with a CentOS 7 minimal DVD. I've spun a custom ISO based on CentOS-7-x86_64-Minimal-1503-01 and have only added a kickstart file that installs @core, sudo, rsyslog, and NetworkManager-tui. I have not added any additional…
devteam
  • 101
  • 1
  • 1
  • 4
1
2 3
10 11