how to copy file at post?

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

 



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




[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