VMware Cloud Community
MartinPasquier
Contributor
Contributor
Jump to solution

Kickstart Installation: %post section > cp command unknown

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.

Reply
0 Kudos
1 Solution

Accepted Solutions
FranckRookie
Leadership
Leadership
Jump to solution

Hi Martin,

Welcome to the forums.

Have a look at this thread if it can help.

Good luck.

Regards

Franck

View solution in original post

Reply
0 Kudos
3 Replies
FranckRookie
Leadership
Leadership
Jump to solution

Hi Martin,

Welcome to the forums.

Have a look at this thread if it can help.

Good luck.

Regards

Franck

Reply
0 Kudos
MartinPasquier
Contributor
Contributor
Jump to solution

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

Reply
0 Kudos
MartinPasquier
Contributor
Contributor
Jump to solution

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

Reply
0 Kudos