Mailinglist Archive: opensuse-autoinstall (87 mails)

< Previous Next >
[opensuse-autoinstall] Strange problem with creating a modified.xml
  • From: "Mike Marion" <mmarion@xxxxxxxxxxxx>
  • Date: Tue, 27 Feb 2007 22:37:08 -0800
  • Message-id: <20070228063708.GB12253@xxxxxxxxxxxxxxxxxxxx>

What does "Can't detect Profile Version" usually indicate?

>From y2log..
===
2007-02-28 01:27:04 <1> 10.42.37.174(3375) [YCP] AutoinstScripts.ycp:545 Script Execution command: /bin/sh /tmp/YaST2-03375-S80cIe/pre-scripts/pre.sh 2&> /tmp/YaST2-03375-S80cIe/pre-scripts/logs/pre.sh.log
2007-02-28 01:27:04 <1> 10.42.37.174(3375) [YCP] XML.ycp:113 Reading /tmp/profile/modified.xml
2007-02-28 01:27:04 <1> 10.42.37.174(3375) [agent-xml] XmlAgent.cc(Read):758 Setting XML generic error handler
2007-02-28 01:27:04 <1> 10.42.37.174(3375) [agent-xml] XmlAgent.cc(Read):793 Freeing generic XML error handler
2007-02-28 01:27:04 <1> 10.42.37.174(3375) [YCP] Profile.ycp:167 importing profile
2007-02-28 01:27:04 <1> 10.42.37.174(3375) [YCP] Profile.ycp:149 Can't detect Profile Version
===

The bizarre thing is that I'm trying to use a pre.sh script to replace
some lines in the profile, writing it out as /tmp/profile/modified.xml
and this fails. But, if I take exactly that modified.xml file (scp'd
off via the console) and feed that back into the same host again on a new
attempt at installing, I get the above error, but the autoinst.xml
(which should be invalid too since it's identical[*]) works fine. This
makes no sense... why would it reject modified.xml but work just fine as
the fallback?

Is there something in the parsing of modified.xml that is a little more
strict I might be missing?

[*]there are differences in a couple of the scripts, the parsing I'm
doing removes the backslashes that I used i some sed commands, so I
double backslash them. This doesn't effect the profile itself though.

A diff shows that the autoinst.xml (which works) vs the modified.xml
(which is rejected) are the same, other then the backslashes inside the
scripts CDATA blocks.

--
Mike Marion-Unix SysAdmin/Staff Engineer-http://www.qualcomm.com
Grandpa: "Quick! We have to kill the boy!"
Marge: "How'd you know he's a vampire?"
Grandpa: "He's a vampire?!? Ahhh...." [runs away] ==> Simpsons
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx

< Previous Next >