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

Re: how to copy file at post?

The main problem is that you try to copy
from no-chroot to chroot!

better: (http://redhat.pacific.net.au/redhat/linux/8.0/it/doc/RH-DOCS/rhl-cg-en-

%post --nochroot
[ -e /mnt/source/myfile ] && cp /mnt/source/myfile ${NEWSYSROOT}/myfile \
                          || echo "copy error" >> ${NEWSYSROOT}/tmp/error.log

Have Fun!

- thomas

Zitat von "Chan, Dominic" <DWC Lubrizol com>:

> I am trying to copy some script files during the post installation phrase
> with kickstart.  Can anyone tell me what I need to mount at the end of the
> packages install so I could copy files from both either my cdrom or floppy to
> my newly created root partition?  For example, do I mount my floppy or cdrom
> as "mount /dev/fd0 /mnt/floppy" or "mount /dev/fd0 /tmp/floppy" or "mount
> /dev/fd0 /mnt/sysimage/mnt/floppy"??  What is the real mounting point of my
> root partition during anaconde installation?
> Here is what I current have on my post section, and it is not working
> %post
> /usr/sbin/useradd test
> chfn -f 'Test User' test
> /usr/sbin/usermod -p '$1$þAìÑ0Üòq$nUstYoiwgaCXoQxre7cI1.' test
> cd /mnt
> mkdir floppy
> mkdir cdrom
> mount /dev/fd0 /mnt/floppy
> cp /mnt/sysimage/mnt/floppy/splash.lss /mnt/sysimage/root/
> mount /dev/cdrom /mnt/cdrom
> cp /mnt/sysimage/cdrom/EULA /mnt/sysimage/root/
> Dwc
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list redhat com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

Thomas Baumann // Postfach 110115 // D-64216 Darmstadt // <tom tiri li>

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