chroot-scripts not running
I did not really expect to have some many problems with this but I was wrong... As part of my auto-install I have a <chroot-scripts> script which notifies a server to remove the PXE boot file from the tftp server (that way, next time I boot the new machine, it won't try to run the install again). The chroot-script is the following: <chroot-scripts> <script> <filename>done-install</filename> <interpreter>shell</interpreter> <source> <![CDATA[# # Tell the install server we are done. # THIS MUST REMAIN THE LAST COMMAND. echo "We are running" > /root/blah wget http://1.2.3.4/cgi-bin/install-done.cgi ]]> </source> </script> </chroot-scripts> However, it does not seem to be running at all. The "echo" line does not produce anything and there is no sign of the wget in the http server logs. How can I verify that the script is running and the wget is doing what it is supposed to? Thanx -- Mitko Haralanov mitko@pathscale.com http://www.pathscale.com ========================================== Hackers are just a migratory lifeform with a tropism for computers.
Hi, after installation is done, you can check the logs coming from the script run in /var/adm/autoinstall, so this might tell you exactly what happened. Where do you have the the xml snippet exactly? it should be under <configure> <scripts> wget is actually available in the installation mini system, so you dont have to chdir to the installed system under /mnt. And last bu not least, autoyast in SLES9 has support for PXE configurations, in the install section of the profile, add something like that <pxe> <pxe_localboot config:type="boolean">true</pxe_localboot> <pxelinux-config><![CDATA[ DEFAULT linux LABEL linux localboot 0 ]]> </pxelinux-config> <tftp-server>192.168.1.31</tftp-server> </pxe> and make the files in /tftpboot/pxelinux.cfg writable, this will right the above into the the hex name of the host and next time you boot you will have the installed bootloader instead of PXE... (it uses tftp put to upload the a config file with the contents of pxelinux-config. Anas Mitko Haralanov wrote:
I did not really expect to have some many problems with this but I was wrong...
As part of my auto-install I have a <chroot-scripts> script which notifies a server to remove the PXE boot file from the tftp server (that way, next time I boot the new machine, it won't try to run the install again). The chroot-script is the following:
<chroot-scripts> <script> <filename>done-install</filename> <interpreter>shell</interpreter> <source> <![CDATA[# # Tell the install server we are done. # THIS MUST REMAIN THE LAST COMMAND. echo "We are running" > /root/blah wget http://1.2.3.4/cgi-bin/install-done.cgi ]]> </source> </script> </chroot-scripts>
However, it does not seem to be running at all. The "echo" line does not produce anything and there is no sign of the wget in the http server logs.
How can I verify that the script is running and the wget is doing what it is supposed to?
Thanx
participants (2)
-
Anas Nashif
-
Mitko Haralanov