In this post, I attached a file ks.cfg, a simple ks.cfg, but the most important in this file, I think are your last 5 lines, this lines can save your day
In the example bellow, after install all RHEL, the KS, copy all files in the directory specified of your cd to the root of your server. This copy, for example, would be copy an script or program or both.
Comments in red…
%post –nochroot –log=/mnt/sysimage/root/log_pos_ks
(enable post and create a log)
#!/bin/bash
(launching the bash)
mkdir /tmp/cd
(create a dir to mount dvd )
mount -t iso9660 /tmp/cdrom /tmp/cd
(mount dvd)
cp tmp/cd/mydir/* /mnt/sysimage/root/.
(copy all files in mydir to /root)
umount /tmp/cd
(umount dvd)
%end
(end post installation)
You can download ks.cfg model here:
