I made a kickstart script and at the %post installation i would like to perform a few tasks.
1) Get a script from an ftp
2) chmod the sctipt
3) copy the script to /etc/init.d
4) chkconfig the script so when system reboots the script will be executed
I made the following kickstart script (post section)
Code:
%post --nochroot --log=/mnt/sysimage/root/ks-post.log
/mnt/sysimage/usr/bin/wget -q ftp://192.168.0.101:/myInit_script -P /mnt/sysimage/root/
chmod -R 755 /mnt/sysimage/root/*
cp /mnt/sysimage/root/myInit_script -P /etc/init.d/
/mnt/sysimage/sbin/chkconfig --level 3 myInit_script on
The above system wont work and when i view the ks-post.log i can see the scrambled message below:
Quote:
rmation on service cmxinit: No such file or directory
|
1) Why cant it find the file since it is there? When i reboot and login on the system i can see that the file was copied.
2) I would be very happy if someone could explain me the chroot // nochroot thing. As far as i understood , the chroot environment is the file-system anaconda creates in order to perform the installation. And the nochrooted file-system is the one that it is just installed, our actual OS. Is that correct? I cant find much explanation articles on the net for the specific topic.
thanks