Re: how to copy file at post?

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

 



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

i.e.
better: (http://redhat.pacific.net.au/redhat/linux/8.0/it/doc/RH-DOCS/rhl-cg-en-
8.0/s1-kickstart2-postinstallconfig.html)

%post --nochroot
NEWSYSROOT=/mnt/sysimage
[ -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@xxxxxxxxxxxx>:

> 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@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
> 
> 


-- 
Thomas Baumann // Postfach 110115 // D-64216 Darmstadt // <tom@xxxxxxx>




[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux