Hi all, this is my first post to the community.
I'm trying to install esx 4.0.0 server using ks.cfg on USB key. All my ks script pass but the %post section. In there I need to copy a script wich is on my usb key into /opt/ directory and replace /etc/rc.local to launch my script at first boot. But the installer return an error, saying that cp and rm commands are not known.
I tried writing /bin/cp /mnt/usbdisk/xxx /opt/ with no concluent result.
Any idea ?
Thanks in advance
Martin Pasquier
PS: The script was written with notepad++ and converted into UNIX format by it too.
Hi Franck,
Thanks for your answer, I just read the thread and test to add --nochroot on my %post to copy files.
My problem is still the same, The installation loads ks.cfg on my usb disk and when he is at 100% it says: cp unknown command line xx in ks.cfg.
But, I use %include for my ks.cfg, so my script is in truth four different files. And the %post section is written in one file and the commands for %post section are into another file wich is included after. Is that a problem ?
This script was run on esx 3.5 and worked well.
Does anybody knows how to fix it ?
Thanks in advance
Martin Pasquier
Sorry Franck, you were right, --nochroot like in the thread is the solution to fix that problem. I just forgot to write path to the commands, like /bin/cp for the case of esx 4.0.0.
Thanks a lot, regards
Martin Pasquier