[opensuse-autoinstall] Merging Patterns in openSUSE 11.2 ?
Hi all, I'm adding two profiles in rules.xml. Both contain <patterns>, <packages> and <remove-packages> entries. When merging the two xml files manually according to Uwe Gansert's blog with /usr/bin/xsltproc --novalid --param replace "'false'" \ --param dontmerge1 "'package'" \ --param with "'server.xml'" --output out.xml \ /usr/share/autoinstall/xslt/merge.xslt COMMON.xml then out.xml contains all patterns and packages added from both profiles. Everything is as expected. Within autoinstallation only the <packages> and <remove-packages> are merged in the right way. <patterns> merging fails. Patterns added from the second profile are totally ignored. I'm adding the second profile as: <rule> ... <result> <profile>classes/software/server.xml</profile> <continue config:type="boolean">true</continue> <dont_merge config:type="list"> <element>package</element> </dont_merge> </result> </rule> as described in http://www.suse.de/~ug/autoyast_doc/merging.html But the patterns are not merged. Only packages. In y2log I see the same 'xsltproc' command as written above. Am I doing something wrong? Why does it only work if processed manually? Any ideas? Regards, Werner Hack -- -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Hi all, I managed to solve this problem for me. In all my profiles I arranged the sections as below <software> <patterns> <packages> <remove-packages> </software> I noticed that in autoyast this order was rearranged after the import of my first profile. In the file 'base_profile.xml' generated by the merging process in autoyast the three sections were listed now in this order <software> <packages> <patterns> <remove-packages> </software> Packages has now moved to first position. As Frank Steiner wrote in a similar post the section order in your profiles is important for merging !!! http://lists.opensuse.org/opensuse-autoinstall/2009-07/msg00043.html I rearranged the sections in my profiles now according to this and it works fine for me. Thanks Frank for your hint :) Maybe this workaround helps other in merging their own patterns into autoyast :) Regards, Werner Hack -- -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (1)
-
Werner Hack