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>
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