on Wednesday 07 October 2009 Simon Loewenthal/NL/Tele2 wrote:
I have some post installation scripts that I would like to call from my generic autoyast.xml file. This involves three related questions :
1) One file reads, # cat ntp.conf.sh <source> <![CDATA[ cp -f /etc/ntp.conf /etc/ntp.conf.original.autoyast cat > /etc/ntp.conf << EOF server 127.127.1.0 fudge 127.127.1.0 stratum 10 driftfile /var/lib/ntp/drift/ntp.drift logfile /var/log/ntp keys /etc/ntp.keys trustedkey 1 requestkey 1 server 10.254.26.3 iburst restrict 10.254.26.2 restrict time.versatel.com EOF chmod 640 /etc/ntp.conf chown root:ntp /etc/ntp.conf ]]> </source>
How would I reference this in the autoyast.xml script.
multiple options here. You can use a post-script to do exactly what you have pasted above: http://www.suse.de/~ug/autoyast_doc/createprofile.scripts.html you can use the <files> section to let autoyast copy that content to the right place: http://www.suse.de/~ug/autoyast_doc/createprofile.completeconf.html you can use the autoyast UI to configure the NTP like you want and let autoyast do the configuration freedom of choice :)
2) I would like to create separate package installation XML files that can be called by autoyast depending on what will be installed. One such file might read: # cat postinstall-squid.xml <software> <packages config:type="list"> <package>squid</package> </software>
Where in the autoyast.xml would I call this and how.
you should use rules for that: http://www.suse.de/~ug/autoyast_doc/rulesandclass.html rules can put multiple XML snippets together to one complete file, depending on things you can only know during installation time. -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org