Actually, this is a larger issue: /mnt/source should remain mounted until
after the %post scripts have run. It's a bug that this isn't the case
(it used
to be in prior versions).
See "Newbie questions about Kickstart" on anaconda-devel for more
details.
-Philip
Pat wrote:
I tried your suggestion Phillip however /mnt/source
was not found. After doing some more digging, I found
an old thread which addressed this issue. See 'Install
of rpm packages in %post - script' thread at:
https://www.redhat.com/archives/kickstart-list/2004-April/thread.html#00024
Here's the section I added which enabled me to copy my
files from the install disc.
%post --nochroot
mkdir -p /mnt/source
mount /tmp/cdrom /mnt/source
cp /mnt/source/custom.tar.gz /mnt/sysimage/root/
umount /mnt/source
Hope this helps someone else out there. Thanks!
I'm not sure, but I suspect there might be issues
related to the major/minor
device numbers being wrong in the chroot'd
environment. Maybe.
In any case, you could try:
%post --nochroot
cp /mnt/source/xyzzy /mnt/sysimage/foo/bar/
instead.
-Philip