[opensuse-autoinstall] sles11 sp1 problem on add_on section in xml file
Hello,
I've a Problem with the SP1 on SLES11.
I have the following xml file sniplet which will be merged by the
rules.xml file during autoyast installation
Condition:
================================================
<?xml version="1.0"?>
<profile xmlns="http://www.suse.com/1.0/yast2ns"
xmlns:config="http://www.suse.com/1.0/configns">
<add-on>
Hi, I've placed a script in the pre-scripts section: ================================================ # # change CDATA in media_url # MOD="/tmp/profile/modified.xml" sed -i "/media_url/s@@\1@g" $MOD ================================================ The effect is, that the add_ons/paths will be recognized, but in the installation section of add_products the Directory and Repository Name is 'Unknown' still. Regards Ruediger Am 29.06.2010 10:17, schrieb Ruediger Gunreben:
Hello,
I've a Problem with the SP1 on SLES11. I have the following xml file sniplet which will be merged by the rules.xml file during autoyast installation
Condition: ================================================ <?xml version="1.0"?> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> <add-on>
<listentry> cd:///?devices=/dev/sr0,/dev/sr1 <product>IsarFlowAddons</product>/addons/isarflow true <name>IsarFlowAddons</name> </listentry> ... ================================================When I've a look at the processed /tmp/profile/autoinst.xml file after the merging during the installation process the media_url entry looks like this:
Problem: ================================================
<![CDATA[cd:///?devices=/dev/sr0,/dev/sr1]]> ================================================Thus the add_on_products won't be found and the Directory and Repository Name will be declared as 'Unknown' in the installation section of add_products.
Can anyone help me with this problem?
Workaround(?): I'll try to make a "sed" pre-script substitution. I'll let you know it it works.
Regards Ruediger
-- Ruediger Gunreben Tel: +49 811 99829 116 Fax: +49 811 99829 216 GSM: +49 178 7072030 E-Mail: ruediger.gunreben@isarnet.de CCIE R+S #21614 ________________________________________ Support IsarFlow Tel.: 0811 99829 270 E-Mail: support@isarflow.de IsarNet Software Solution GmbH Terminalstrasse Mitte 18 85356 Muenchen http://www.isarflow.de http://www.isarnet.de ________________________________________ IsarNet AG Terminalstrasse Mitte 18 85356 Muenchen Sitz der Gesellschaft: Oberding Handelsregister Muenchen, HRB 127295 USt.-ID Nr. DE203054669 Vorstand: Andreas Perthel, Harald Weikert Vorsitzender des Aufsichtsrates: Andreas Gallenmueller ________________________________________ -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
on Tuesday 29 June 2010 Ruediger Gunreben wrote:
I've placed a script in the pre-scripts section:
================================================ # # change CDATA in media_url # MOD="/tmp/profile/modified.xml" sed -i "/media_url/s@@\1@g" $MOD ================================================
The effect is, that the add_ons/paths will be recognized, but in the installation section of add_products the Directory and Repository Name is 'Unknown' still.
that's very weird. It should have no effect. Can you send me the y2log file where you did not "sed"-out the CDATA and one where you did sed them out?
Problem: ================================================
<![CDATA[cd:///?devices=/dev/sr0,/dev/sr1]]> ================================================
The CDATA should not hurt and I invented them there on purpose. They are needed in some corner cases (especially when the XML file is generated on the fly by a webserver). -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug listening to: "Run for your life" by mind.in.a.box -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
on Tuesday 29 June 2010 Uwe Gansert wrote:
Problem: ================================================
<![CDATA[cd:///?devices=/dev/sr0,/dev/sr1]]> ================================================The CDATA should not hurt and I invented them there on purpose. They are needed in some corner cases (especially when the XML file is generated on the fly by a webserver).
hoppla. Sorry I did not read carefully enough. What I wrote is true for
<location> where the scripts are created on the fly but not for
participants (2)
-
Ruediger Gunreben
-
Uwe Gansert