Problem fixed by adding the dont_merge option to the rules.xml for each rule ( rules which will have a script section )
Example:
...
<rule>
<custom1>
<match>*</match>
exact
</custom1>
<result>
<profile>classes/script.xml</profile>
<continue config:type="boolean">true</continue>
<element>script</element>
</result>
</rule>
...
-----Original Message-----
From: Hans-Joachim Ehlers [mailto:HansJoachim.Ehlers@eumetsat.int]
Sent: Wednesday, August 24, 2011 4:29 PM
To: opensuse-autoinstall@opensuse.org
Subject: [opensuse-autoinstall] Corrupted post script section
Given
* SLES11 SP1
* post script with location tag ( tce-nisclient )
* post script with source tag ( script.xml )
Task:
Both files get merged by autoyast via a rule.xml
Problem: The result has a corrupted post script section with only one section having a location and source tag.
...
<post-scripts config:type="list">
<script>
<debug config:type="boolean">true</debug>
<feedback config:type="boolean">false</feedback>
<filename>cfg_post_tce_nisclient</filename>
<interpreter>shell</interpreter>
<location><![CDATA[http://@INSTSERVER@/export/suse/scripts/tce_nisclient.cmd]]></location>
false
<rerun config:type="boolean">true</rerun>
<source><![CDATA[
echo cfg_post
echo cfg_post
]]></source>
...
Notes:
Extract from the nisclient client xml
<scripts>
<post-scripts config:type="list">
<script>
<filename>cfg_post_tce_nisclient</filename>
<rerun config:type="boolean">true</rerun>
<debug config:type="boolean">true</debug>
<feedback config:type="boolean">false</feedback>
<interpreter>shell</interpreter>
<location>http://@INSTSERVER@/export/suse/scripts/tce_nisclient.cmd</location>
</script>
</post-scripts>
</scripts>
Extract from the script.xml
<scripts>
<post-scripts config:type="list">
<script>
<filename>cfg_post</filename>
<debug config:type="boolean">true</debug>
<feedback config:type="boolean">false</feedback>
false
<interpreter>shell</interpreter>
<source><![CDATA[
echo cfg_post
echo cfg_post
]]></source>
</script>
</post-scripts>
</scripts>
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org