AutoYast script location
Hi, I'm preparing an installation DVD for SLES9 SP and want to use AutoYast with XML control file and customized shell scripts. Because I don't want copy the shell code into every XML control file I want it separately on the DVD. Is the following possible? <post-scripts config:type="list"> <script> <filename>post-install.sh</filename> <location>dvd:///autoyast/post-install.sh</location> </script> </post-scripts> Or does one need to write a wrapper script that mounts the DVD, copies and executes the script manually? How can this be done during chroot installation phase when the name of the CD/DVD device file is not known and the /dev/cdrom link does not yet exist? Regards, Bernd
On Wednesday 09 November 2005 09:31, Bernd Nies wrote:
I'm preparing an installation DVD for SLES9 SP and want to use AutoYast with XML control file and customized shell scripts. Because I don't want copy the shell code into every XML control file I want it separately on the DVD. Is the following possible?
<post-scripts config:type="list"> <script> <filename>post-install.sh</filename> <location>dvd:///autoyast/post-install.sh</location> </script> </post-scripts>
"dvd" is not known as a scheme by autoyast. You should try file:///autoyast/post-install.sh You'll not have the script in the installation system so one might think that "file:///" can't work but Autoyast should try to find the script on the installation media (CD,DVD) as a fallback then too. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany e-mail: uwe.gansert@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
Hi Uwe,
"dvd" is not known as a scheme by autoyast. You should try file:///autoyast/post-install.sh You'll not have the script in the installation system so one might think that "file:///" can't work but Autoyast should try to find the script on the installation media (CD,DVD) as a fallback then too.
Yup, this works and reads the script from DVD: <configure> <scripts> <post-scripts config:type="list"> <script> <filename>post-install.sh</filename> <interpreter>shell</interpreter> <network_needed config:type="boolean">false</network_needed> <!-- Reads from CD/DVD as fallback --> <location>file:///autoyast/post-install.sh</location> </script> </post-scripts> </scripts> </configure> Thanks! Regards, Bernd
participants (2)
-
Bernd Nies
-
Uwe Gansert