Kickstart custom initrd

General support questions
Post Reply
gixnex
Posts: 4
Joined: 2018/06/24 18:22:34

Kickstart custom initrd

Post by gixnex » 2018/06/24 18:29:38

Hi,

I was wondering how I can add more commands or applications to use them in the %pre section. If I'm not wrong these commands are in the initrd.img

For instance, it seems that python 2.6.6 is the python version for 6.9, is it possible to update it to 3.6.5 or adding util-tools like lsblk etc.?

Thanks in advance

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Kickstart custom initrd

Post by TrevorH » 2018/06/24 20:56:58

You really really do not want to mess with the python version in any version of CentOS. All the system tools like yum etc are built on and rely upon the exact version of python that we ship. If you try to change it, they will all break. You can supply an updates.img or a product.img file in the same place as the other .img file on your install tree though updates.img is intended to fix bugs in anaconda and product.img for customizing the look of your install.

https://fedoraproject.org/wiki/Anaconda/Updates
https://fedoraproject.org/wiki/Anaconda/ProductImage
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

gixnex
Posts: 4
Joined: 2018/06/24 18:22:34

Re: Kickstart custom initrd

Post by gixnex » 2018/06/25 08:44:03

Thanks for your reply TrevorH.

I don't want to change the shipped version of the CentOS 6, I just want to have another version in the ramdisk of the kickstart process (I want to create raid configurations in the raid controller, etc.) and keep the shipped one after the installation. For instance I tried to use lsblk in the %pre section but it's not installed. Just wondering if I can custom that OS that is running in the first stage of kickstart.

Thanks in advance.

Post Reply