[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Problem with copying file from install CD to harddrive in %post
- From: Pat <patchu1 yahoo com>
- To: kickstart-list redhat com
- Subject: Re: Problem with copying file from install CD to harddrive in %post
- Date: Thu, 11 May 2006 12:24:52 -0700 (PDT)
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]