Re: Problem with copying file from install CD to harddrive in %post

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
> 



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux