Hi Guys, I find a strange problem of KickStart post script when installing RHEL 6.2 from PXE server.
I have the following command in post script. It will mount a Windows share folder and copy its content to "/opt/folder".
%post
ifconfig >> /root/log.txt
mkdir /mnt/folder
mkdir /opt/folder
mount -t cifs -o username=XXX,passwd=XXX //192.168.100.100/folder/ /mnt/folder
cp -r /mnt/folder/* /opt/folder/
%end
This script show the following error when I install RHEL 6.2 from PXE. I dump IP to log.txt and eth0 IP address is correct. The same script works find in RHEL 6.1 PXE installation
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Does anyone have any clue? Many thanks!! I've been struggling on this problem.
---------- Post added at 04:22 AM ---------- Previous post was at 02:44 AM ----------
I search google and find one similar problem (
http://serverfault.com/questions/203...ter-reboot-why)
Then I add "modprobe cifs" before mounting. But still have the same problem. I doubt some services are not started druing post installation for RHEL 6.2.