I have a kickstart based DVD that I want to use to setup a few identicat servers. The DVD is an exact copy of a RHEL iso image, with the addition of a directory named "custom". Under that directory, I have some scripts and some jpgs that I want to copy to each server.
In the kickstart file, in the %post --nochroot section, I copy all those files to their final location as:
cp -f /custom/script1.sh /mnt/sysimage/usr/local/bin/
cp -f /custom/script2.sh /mnt/sysimage/usr/local/bin/
cp -f /custom/script3.sh /mnt/sysimage/usr/local/bin/
cp -f /custom/image1.jpg /mnt/sysimage/usr/local/<myapp>
cp -f /custom/image2.jpg /mnt/sysimage/usr/local/<myapp>
cp -f /custom/image3.jpg /mnt/sysimage/usr/local/<myapp>
However, the ks.log file says that the /custom directory does exists!
So, how do I copy files from installation DVD to the new system?
OK, I found it. Red Hat/Centos, mount the installation media in the /mnt/source directory. So in order to copy my files, I changed the commands to: