![](https://seccdn.libravatar.org/avatar/a3b33c0c35f3f0a8365b6043072e1cf3.jpg?s=120&d=mm&r=g)
Hi folk, i am back again. Given: ./autoinst/default ( default xml file for installation - with section for Hostname and IP ) ./autoinst/rules/rules.xml ./autoinst/host01.xml ( Contains Hostname and IP in a valid xml structure ) So far i have a valid and working rules.xml which will add the host01.xml to the /tmp during installation but it does not add the ./autoinst/default xml. So the installation will stop. I did not found any information about adding a default profile IF you are using a rules.xml Is there is any include directive or some kind of default in the rules.xml ? Right now i am using a second rule to include the default xml file 295$ cat rules.xml <?xml version="1.0"?> <!DOCTYPE autoinstall SYSTEM "/usr/share/autoinstall/dtd/rules.dtd"> <autoinstall xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> <rules config:type="list"> <rule> <custom1> <script> <![CDATA[ #!/bin/sh hostname=$( cat /proc/cmdline | tr " " "\n" | awk '{ if ( $1 == "hostname" ) print $2 }' FS="=" ) echo -n $hostname ]]> </script> <match>*</match> <match_type>exact</match_type> </custom1> <result> <profile>classes/@custom1@.xml</profile> <continue config:type="boolean">true</continue> </result> </rule> <rule> <custom1> <match>*</match> <match_type>exact</match_type> </custom1> <result> <profile>default</profile> <continue config:type="boolean">false</continue> </result> </rule> </rules> </autoinstall> tia Hajo ============================ Hans-Joachim Ehlers UNIX Systems Engineer EUMETSAT Am Kavalleriesand, 31 64295, Darmstadt, Germany Tel : +49 6151 807-7307 eMail : hansjoachim.ehlers@eumetsat.int iNet : www.eumetsat.de
![](https://seccdn.libravatar.org/avatar/43d28c61e1e0659972b2e139c34792d5.jpg?s=120&d=mm&r=g)
On Tuesday 09 August 2005 19:22, Hans-Joachim Ehlers wrote:
I did not found any information about adding a default profile IF you are using a rules.xml Is there is any include directive or some kind of default in the rules.xml ?
not that I know of. Your solution looks good. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nürnberg, Germany e-mail: uwe.gansert@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
participants (2)
-
Hans-Joachim Ehlers
-
Uwe Gansert