[opensuse-autoinstall] rules.xml on DVD install
I am trying to add my rules to a openSUSE 11.1 DVD installation medium. I need the rules to reside on the DVD instead of an ftp, etc server. I have verified that my rules work when I invoke the install using autoyast= ftp://192.168.1.120/autoyast/11.1/x86_64/ where the rules reside under rules/rules.xml and the profiles are in autoyast/11.1/x86_64/. When I try to copy the files to the DVD, I have problems. It seems to find the rules.xml when I put it on the DVD under /rules. When it comes time to copy the profiles, this is where the problem arises. After the rules have run, I see this in the y2log: [YCP] autoinstall/io.ycp:119 Copy profile: cp /default.xml /tmp/YaST2-03147-PNVUlC/rules/ default.xml [bash] ShellCommand.cc(shellcommand):78 cp: missing destination file operand after '/default.xml' [bash] ShellCommand.cc(shellcommand):78 Try 'cp --help' for more information. [bash] ShellCommand.cc(shellcommand):78 sh: line 1: /tmp/YaST2-03147-PNVUlC/rules/default.xml: No such file or directory Any suggestions on how to fix this? I've already read over the documentation, FAQ, and everything google turned up. I'm pretty desperate at this point. Jeromy -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
on Tuesday 06 October 2009 Jeromy Smith wrote:
Any suggestions on how to fix this? I've already read over the documentation, FAQ, and everything google turned up. I'm pretty desperate at this point.
what comes later in the log? The error you pasted is an expected one. -- 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: "The Four Horsemen" by Metallica -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
I neglected to mention that I am invoking the auto-install process
using "autoyast=file:///" and in this instance "default.xml" is the
XML that my rules specify. I have tried it with other filenames and
got the same results.
Here is the rest of the log file:
Oct 6 11:32:44 192.168.1.191 yast2[3454]: <1> [YCP]
AutoInstallRules.ycp:311 Installing openSUSE 11.1 11.1
Oct 6 11:32:44 192.168.1.191 yast2[3454]: <3> [YCP] Progress.ycp:736
Progress bar has only 10 steps, not 12.
Oct 6 11:32:44 192.168.1.191 yast2[3454]: <3> [YCP] Progress.ycp:778
UpdateProgressBar ()
Oct 6 11:32:44 192.168.1.191 yast2[3454]: <3> [YCP]
clients/inst_autoinit.ycp:36 Progress::NextStep ()
Oct 6 11:32:44 192.168.1.191 yast2[3454]: <3> [YCP]
clients/inst_autoinit.ycp:172 processProfile ()
Oct 6 11:32:44 192.168.1.191 yast2[3454]: <3> [YCP]
ProductControl.ycp:1470 ProductControl::RunFrom (0, false)
Oct 6 11:32:44 192.168.1.191 yast2[3454]: <3> [YCP]
clients/inst_check_autoinst_mode.ycp:82 ProductControl::Run ()
Oct 6 11:32:44 192.168.1.191 yast2[3454]: <1> [YCP]
ProfileLocation.ycp:46 Path to remote control file: /
Oct 6 11:32:44 192.168.1.191 yast2[3454]: <1> [YCP]
ProfileLocation.ycp:132 Dir=/
Oct 6 11:32:44 192.168.1.191 yast2[3454]: <1> [YCP]
ProfileLocation.ycp:133 Fetching Rules File
Oct 6 11:32:44 192.168.1.191 yast2[3454]: <1> [agent-system]
SystemAgent.cc(Execute):1104 mkdir /tmp/YaST2-03454-gh7mpk/rules
Oct 6 11:32:44 192.168.1.191 yast2[3454]: <1> [agent-system]
SystemAgent.cc(Execute):1104 mkdir /tmp/YaST2-03454-ElIczG/tmp_mount
Oct 6 11:32:44 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:112 Copy profile: cp
/var/adm/mount//rules/rules.xml
/tmp/YaST2-03454-gh7mpk/rules/rules.xml
Oct 6 11:32:44 192.168.1.191 yast2[3454]: <1> [YCP]
ProfileLocation.ycp:169 Reading Rules File
Oct 6 11:32:44 192.168.1.191 yast2[3454]: <1> [YCP] XML.ycp:113
Reading /tmp/YaST2-03454-gh7mpk/rules/rules.xml
Oct 6 11:32:44 192.168.1.191 yast2[3454]: <1> [agent-xml]
XmlAgent.cc(Read):758 Setting XML generic error handler
Oct 6 11:32:44 192.168.1.191 yast2[3454]: <1> [agent-xml]
XmlAgent.cc(Read):793 Freeing generic XML error handler
Oct 6 11:32:44 192.168.1.191 yast2[3454]: <1> [YCP]
AutoInstallRules.ycp:434 Rules: $["rules":[$["custom1":$["match":"*",
"match_type":"exact", "script":"\nMANUFACTURER=`dmidecode -s
system-manufacturer`\nPRODUCT=`dmidecode -s system-product-name`\nif [
\"`echo $MANUFACTURER | grep -i \\\"Dell\\\"`\" != \"\" ]; then\n if
[ \"`echo $PRODUCT | grep -i \\\"M6300\\\"`\" != \"\" ]; then\n
echo \"dellm6300.xml\"\n elif [ \"`echo $PRODUCT | grep -i
\\\"M6400\\\"`\" != \"\" ]; then\n echo \"dellm6400.xml\"\n elif [
\"`echo $PRODUCT | grep -i \\\"390\\\"`\" != \"\" ]; then\n echo
\"dellt5400.xml\"\n elif [ \"`echo $PRODUCT | grep -i
\\\"T5400\\\"`\" != \"\" ]; then\n echo \"dellt5400.xml\"\n elif [
\"`echo $PRODUCT | grep -i \\\"T5500\\\"`\" != \"\" ]; then\n echo
\"dellt5400.xml\"\n elif [ \"`echo $PRODUCT | grep -i \\\"2950\\\"`\"
!= \"\" ]; then\n echo \"ts-8cpu.xml\"\n elif [ \"`echo $PRODUCT |
grep -i \\\"R710\\\"`\" != \"\" ]; then\n echo \"ts-8cpu.xml\"\n
fi;\nelif [ \"`echo $PRODUCT | gre
Oct 6 11:32:44 192.168.1.191 yast2[3454]: <1> [YCP]
AutoInstallRules.ycp:485 Writing rule script into
/tmp/YaST2-03454-gh7mpk/rule_custom1
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <1> [YCP]
AutoInstallRules.ycp:390 Bash return: if ( [ "1" = "1" ] ) ; then
exit 0; else exit 1; fi ($["exit":0, "stderr":"", "stdout":""])
($["custom1":"default.xml\n"])
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <1> [YCP]
AutoInstallRules.ycp:397 file: @custom1@
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <1> [YCP]
AutoInstallRules.ycp:410 var: custom1
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <1> [YCP]
AutoInstallRules.ycp:576 Final Profile name: default.xml
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <1> [YCP]
AutoInstallRules.ycp:625 Getting Rules: ["default.xml\n"]
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <1> [agent-system]
SystemAgent.cc(Execute):1104 mkdir /tmp/YaST2-03454-ElIczG/tmp_mount
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:119 Copy profile: cp /default.xml
/tmp/YaST2-03454-gh7mpk/rules/default.xml
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 cp: missing destination file operand
after `/default.xml'
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 Try `cp --help' for more information.
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 sh: line 1:
/tmp/YaST2-03454-gh7mpk/rules/default.xml: No such file or directory
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:131 Trying to find file on installation media: cd
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:145 Copy profile: cp
/tmp/YaST2-03454-ElIczG/tmp_mount//default.xml
/tmp/YaST2-03454-gh7mpk/rules/default.xml
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 cp: missing destination file operand
after `/tmp/YaST2-03454-ElIczG/tmp_mount//default.xml'
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 Try `cp --help' for more information.
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 sh: line 1:
/tmp/YaST2-03454-gh7mpk/rules/default.xml: No such file or directory
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <3> [YCP]
AutoInstallRules.ycp:643 Error while fetching file: //default.xml
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <1> [YCP]
AutoInstallRules.ycp:654 No files from rules found
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <1> [YCP]
ProfileLocation.ycp:187 Creating default Rules
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <1> [YCP]
AutoInstallRules.ycp:840 Created default rules=["0A00020F", "0A00020",
"0A0002", "0A000", "0A00", "0A0", "0A", "0", "", "", "default"]
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <1> [YCP]
AutoInstallRules.ycp:625 Getting Rules: ["0A00020F", "0A00020",
"0A0002", "0A000", "0A00", "0A0", "0A", "0", "", "", "default"]
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <1> [agent-system]
SystemAgent.cc(Execute):1104 mkdir /tmp/YaST2-03454-ElIczG/tmp_mount
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:119 Copy profile: cp /0A00020F
/tmp/YaST2-03454-gh7mpk/rules/0A00020F
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 cp: cannot stat `/0A00020F': No such
file or directory
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:131 Trying to find file on installation media: cd
Oct 6 11:32:45 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:145 Copy profile: cp
/tmp/YaST2-03454-ElIczG/tmp_mount//0A00020F
/tmp/YaST2-03454-gh7mpk/rules/0A00020F
Oct 6 11:32:46 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 cp: cannot stat
`/tmp/YaST2-03454-ElIczG/tmp_mount//0A00020F': No such file or
directory
Oct 6 11:32:46 192.168.1.191 yast2[3454]: <3> [YCP]
AutoInstallRules.ycp:643 Error while fetching file: //0A00020F
Oct 6 11:32:46 192.168.1.191 yast2[3454]: <1> [agent-system]
SystemAgent.cc(Execute):1104 mkdir /tmp/YaST2-03454-ElIczG/tmp_mount
Oct 6 11:32:46 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:119 Copy profile: cp /0A00020
/tmp/YaST2-03454-gh7mpk/rules/0A00020
Oct 6 11:32:46 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 cp: cannot stat `/0A00020': No such
file or directory
Oct 6 11:32:46 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:131 Trying to find file on installation media: cd
Oct 6 11:32:46 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:145 Copy profile: cp
/tmp/YaST2-03454-ElIczG/tmp_mount//0A00020
/tmp/YaST2-03454-gh7mpk/rules/0A00020
Oct 6 11:32:46 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 cp: cannot stat
`/tmp/YaST2-03454-ElIczG/tmp_mount//0A00020': No such file or
directory
Oct 6 11:32:46 192.168.1.191 yast2[3454]: <3> [YCP]
AutoInstallRules.ycp:643 Error while fetching file: //0A00020
Oct 6 11:32:46 192.168.1.191 yast2[3454]: <1> [agent-system]
SystemAgent.cc(Execute):1104 mkdir /tmp/YaST2-03454-ElIczG/tmp_mount
Oct 6 11:32:46 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:119 Copy profile: cp /0A0002
/tmp/YaST2-03454-gh7mpk/rules/0A0002
Oct 6 11:32:46 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 cp: cannot stat `/0A0002': No such
file or directory
Oct 6 11:32:46 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:131 Trying to find file on installation media: cd
Oct 6 11:32:46 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:145 Copy profile: cp
/tmp/YaST2-03454-ElIczG/tmp_mount//0A0002
/tmp/YaST2-03454-gh7mpk/rules/0A0002
Oct 6 11:32:47 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 cp: cannot stat
`/tmp/YaST2-03454-ElIczG/tmp_mount//0A0002': No such file or directory
Oct 6 11:32:47 192.168.1.191 yast2[3454]: <3> [YCP]
AutoInstallRules.ycp:643 Error while fetching file: //0A0002
Oct 6 11:32:47 192.168.1.191 yast2[3454]: <1> [agent-system]
SystemAgent.cc(Execute):1104 mkdir /tmp/YaST2-03454-ElIczG/tmp_mount
Oct 6 11:32:47 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:119 Copy profile: cp /0A000
/tmp/YaST2-03454-gh7mpk/rules/0A000
Oct 6 11:32:47 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 cp: cannot stat `/0A000': No such
file or directory
Oct 6 11:32:47 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:131 Trying to find file on installation media: cd
Oct 6 11:32:47 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:145 Copy profile: cp
/tmp/YaST2-03454-ElIczG/tmp_mount//0A000
/tmp/YaST2-03454-gh7mpk/rules/0A000
Oct 6 11:32:47 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 cp: cannot stat
`/tmp/YaST2-03454-ElIczG/tmp_mount//0A000': No such file or directory
Oct 6 11:32:47 192.168.1.191 yast2[3454]: <3> [YCP]
AutoInstallRules.ycp:643 Error while fetching file: //0A000
Oct 6 11:32:47 192.168.1.191 yast2[3454]: <1> [agent-system]
SystemAgent.cc(Execute):1104 mkdir /tmp/YaST2-03454-ElIczG/tmp_mount
Oct 6 11:32:47 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:119 Copy profile: cp /0A00
/tmp/YaST2-03454-gh7mpk/rules/0A00
Oct 6 11:32:47 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 cp: cannot stat `/0A00': No such file
or directory
Oct 6 11:32:47 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:131 Trying to find file on installation media: cd
Oct 6 11:32:47 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:145 Copy profile: cp
/tmp/YaST2-03454-ElIczG/tmp_mount//0A00
/tmp/YaST2-03454-gh7mpk/rules/0A00
Oct 6 11:32:47 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 cp: cannot stat
`/tmp/YaST2-03454-ElIczG/tmp_mount//0A00': No such file or directory
Oct 6 11:32:47 192.168.1.191 yast2[3454]: <3> [YCP]
AutoInstallRules.ycp:643 Error while fetching file: //0A00
Oct 6 11:32:48 192.168.1.191 yast2[3454]: <1> [agent-system]
SystemAgent.cc(Execute):1104 mkdir /tmp/YaST2-03454-ElIczG/tmp_mount
Oct 6 11:32:48 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:119 Copy profile: cp /0A0
/tmp/YaST2-03454-gh7mpk/rules/0A0
Oct 6 11:32:48 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 cp: cannot stat `/0A0': No such file
or directory
Oct 6 11:32:48 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:131 Trying to find file on installation media: cd
Oct 6 11:32:48 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:145 Copy profile: cp
/tmp/YaST2-03454-ElIczG/tmp_mount//0A0
/tmp/YaST2-03454-gh7mpk/rules/0A0
Oct 6 11:32:48 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 cp: cannot stat
`/tmp/YaST2-03454-ElIczG/tmp_mount//0A0': No such file or directory
Oct 6 11:32:48 192.168.1.191 yast2[3454]: <3> [YCP]
AutoInstallRules.ycp:643 Error while fetching file: //0A0
Oct 6 11:32:48 192.168.1.191 yast2[3454]: <1> [agent-system]
SystemAgent.cc(Execute):1104 mkdir /tmp/YaST2-03454-ElIczG/tmp_mount
Oct 6 11:32:48 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:119 Copy profile: cp /0A
/tmp/YaST2-03454-gh7mpk/rules/0A
Oct 6 11:32:48 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 cp: cannot stat `/0A': No such file
or directory
Oct 6 11:32:48 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:131 Trying to find file on installation media: cd
Oct 6 11:32:48 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:145 Copy profile: cp
/tmp/YaST2-03454-ElIczG/tmp_mount//0A /tmp/YaST2-03454-gh7mpk/rules/0A
Oct 6 11:32:48 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 cp: cannot stat
`/tmp/YaST2-03454-ElIczG/tmp_mount//0A': No such file or directory
Oct 6 11:32:48 192.168.1.191 yast2[3454]: <3> [YCP]
AutoInstallRules.ycp:643 Error while fetching file: //0A
Oct 6 11:32:48 192.168.1.191 yast2[3454]: <1> [agent-system]
SystemAgent.cc(Execute):1104 mkdir /tmp/YaST2-03454-ElIczG/tmp_mount
Oct 6 11:32:48 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:119 Copy profile: cp /0
/tmp/YaST2-03454-gh7mpk/rules/0
Oct 6 11:32:48 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 cp: cannot stat `/0': No such file or
directory
Oct 6 11:32:48 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:131 Trying to find file on installation media: cd
Oct 6 11:32:49 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:145 Copy profile: cp
/tmp/YaST2-03454-ElIczG/tmp_mount//0 /tmp/YaST2-03454-gh7mpk/rules/0
Oct 6 11:32:49 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 cp: cannot stat
`/tmp/YaST2-03454-ElIczG/tmp_mount//0': No such file or directory
Oct 6 11:32:49 192.168.1.191 yast2[3454]: <3> [YCP]
AutoInstallRules.ycp:643 Error while fetching file: //0
Oct 6 11:32:49 192.168.1.191 yast2[3454]: <1> [agent-system]
SystemAgent.cc(Execute):1104 mkdir /tmp/YaST2-03454-ElIczG/tmp_mount
Oct 6 11:32:49 192.168.1.191 yast2[3454]: <1> [YCP]
autoinstall/io.ycp:112 Copy profile: cp /var/adm/mount//
/tmp/YaST2-03454-gh7mpk/rules/
Oct 6 11:32:49 192.168.1.191 yast2[3454]: <3> [bash]
ShellCommand.cc(shellcommand):78 cp: omitting directory
`/var/adm/mount//'
Oct 6 11:32:49 192.168.1.191 yast2[3454]: <1> [YCP]
AutoInstallRules.ycp:679 Working on file:
Oct 6 11:32:49 192.168.1.191 yast2[3454]: <1> [YCP] XML.ycp:113
Reading /tmp/YaST2-03454-gh7mpk/rules/
Oct 6 11:32:49 192.168.1.191 yast2[3454]: <1> [agent-xml]
XmlAgent.cc(Read):758 Setting XML generic error handler
Oct 6 11:32:49 192.168.1.191 yast2[3454]: <3> [agent-xml]
XmlAgent.cc(xmlagentError):680 Is a directory
Oct 6 11:32:49 192.168.1.191 yast2[3454]: <3> [agent-xml]
XmlAgent.cc(xmlagentError):680 Document is empty
Oct 6 11:32:49 192.168.1.191 yast2[3454]: <3> [agent-xml]
XmlAgent.cc(xmlagentError):680 Start tag expected, '<' not found
Oct 6 11:32:49 192.168.1.191 yast2[3454]: <1> [agent-xml]
XmlAgent.cc(Read):786 Freeing generic XML error handler
Oct 6 11:32:49 192.168.1.191 yast2[3454]: <3> [Interpreter]
XML.ycp:114 Failed while processing XIncludes
Oct 6 11:32:49 192.168.1.191 yast2[3454]: <3> [Interpreter]
XML.ycp:114 SCR::Read() failed
Oct 6 11:32:49 192.168.1.191 yast2[3454]: <3> [Interpreter]
XML.ycp:81 Argument (contents) to Execute(...) is nil
Oct 6 11:32:49 192.168.1.191 yast2[3454]: <3> [YCP]
AutoInstallRules.ycp:686 Error reading XML file
Oct 6 11:32:49 192.168.1.191 yast2[3454]: <1> [ui]
YPushButton.cc(setFunctionKey):160 Guessing button role YOKButton for
YPushButton "OK" at 0x917d268 from function key F10
On Tue, Oct 6, 2009 at 4:59 AM, Uwe Gansert
on Tuesday 06 October 2009 Jeromy Smith wrote:
Any suggestions on how to fix this? I've already read over the documentation, FAQ, and everything google turned up. I'm pretty desperate at this point.
what comes later in the log? The error you pasted is an expected one.
-- 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: "The Four Horsemen" by Metallica
-- 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
on Tuesday 06 October 2009 Jeromy Smith wrote:
AutoInstallRules.ycp:840 Created default rules=["0A00020F", "0A00020", "0A0002", "0A000", "0A00", "0A0", "0A", "0", "", "", "default"]
why are there two empty filenames? Can it happen that you rules produce empty results for the xml filename? Unfortunately the line with the rules.xml is cut in your pasted log. -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
I changed my "default.xml" to "other.xml" to avoid confusion with the
built-in filenames. My rules.xml is as follows:
<?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>
MANUFACTURER=`dmidecode -s system-manufacturer`
PRODUCT=`dmidecode -s system-product-name`
if [ "`echo $MANUFACTURER | grep -i \"Dell\"`" != "" ]; then
if [ "`echo $PRODUCT | grep -i \"M6300\"`" != "" ]; then
echo "dellm6300.xml"
elif [ "`echo $PRODUCT | grep -i \"M6400\"`" != "" ]; then
echo "dellm6400.xml"
elif [ "`echo $PRODUCT | grep -i \"390\"`" != "" ]; then
echo "dellt5400.xml"
elif [ "`echo $PRODUCT | grep -i \"T5400\"`" != "" ]; then
echo "dellt5400.xml"
elif [ "`echo $PRODUCT | grep -i \"T5500\"`" != "" ]; then
echo "dellt5400.xml"
elif [ "`echo $PRODUCT | grep -i \"2950\"`" != "" ]; then
echo "ts-8cpu.xml"
elif [ "`echo $PRODUCT | grep -i \"R710\"`" != "" ]; then
echo "ts-8cpu.xml"
fi;
elif [ "`echo $PRODUCT | grep -i \"X6DVA\"`" != "" ]; then
echo "tsmini.xml"
elif [ "`echo $PRODUCT | grep -i \"X7DVL\"`" != "" ]; then
echo "tsmini.xml"
elif [ "`echo $PRODUCT | grep -i \"X7DAL\"`" != "" ]; then
echo "systel.xml"
else
echo "other.xml"
fi;
</script>
<match>*</match>
on Tuesday 06 October 2009 Jeromy Smith wrote:
AutoInstallRules.ycp:840 Created default rules=["0A00020F", "0A00020", "0A0002", "0A000", "0A00", "0A0", "0A", "0", "", "", "default"]
why are there two empty filenames? Can it happen that you rules produce empty results for the xml filename? Unfortunately the line with the rules.xml is cut in your pasted log.
-- ciao, Uwe Gansert
Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug
-- 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
on Wednesday 07 October 2009 Jeromy Smith wrote:
<script> MANUFACTURER=`dmidecode -s system-manufacturer` PRODUCT=`dmidecode -s system-product-name` if [ "`echo $MANUFACTURER | grep -i \"Dell\"`" != "" ]; then if [ "`echo $PRODUCT | grep -i \"M6300\"`" != "" ]; then echo "dellm6300.xml" elif [ "`echo $PRODUCT | grep -i \"M6400\"`" != "" ]; then echo "dellm6400.xml" elif [ "`echo $PRODUCT | grep -i \"390\"`" != "" ]; then echo "dellt5400.xml" elif [ "`echo $PRODUCT | grep -i \"T5400\"`" != "" ]; then echo "dellt5400.xml" elif [ "`echo $PRODUCT | grep -i \"T5500\"`" != "" ]; then echo "dellt5400.xml" elif [ "`echo $PRODUCT | grep -i \"2950\"`" != "" ]; then echo "ts-8cpu.xml" elif [ "`echo $PRODUCT | grep -i \"R710\"`" != "" ]; then echo "ts-8cpu.xml" fi; elif [ "`echo $PRODUCT | grep -i \"X6DVA\"`" != "" ]; then echo "tsmini.xml" elif [ "`echo $PRODUCT | grep -i \"X7DVL\"`" != "" ]; then echo "tsmini.xml" elif [ "`echo $PRODUCT | grep -i \"X7DAL\"`" != "" ]; then echo "systel.xml" else echo "other.xml"
use "echo -n" everywhere to avoid the \n in the filename -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Thanks a bunch. That was the problem. I guess I didn't pick up that
subtle but important detail from the example.
On Wed, Oct 7, 2009 at 9:21 AM, Uwe Gansert
on Wednesday 07 October 2009 Jeromy Smith wrote:
<script> MANUFACTURER=`dmidecode -s system-manufacturer` PRODUCT=`dmidecode -s system-product-name` if [ "`echo $MANUFACTURER | grep -i \"Dell\"`" != "" ]; then if [ "`echo $PRODUCT | grep -i \"M6300\"`" != "" ]; then echo "dellm6300.xml" elif [ "`echo $PRODUCT | grep -i \"M6400\"`" != "" ]; then echo "dellm6400.xml" elif [ "`echo $PRODUCT | grep -i \"390\"`" != "" ]; then echo "dellt5400.xml" elif [ "`echo $PRODUCT | grep -i \"T5400\"`" != "" ]; then echo "dellt5400.xml" elif [ "`echo $PRODUCT | grep -i \"T5500\"`" != "" ]; then echo "dellt5400.xml" elif [ "`echo $PRODUCT | grep -i \"2950\"`" != "" ]; then echo "ts-8cpu.xml" elif [ "`echo $PRODUCT | grep -i \"R710\"`" != "" ]; then echo "ts-8cpu.xml" fi; elif [ "`echo $PRODUCT | grep -i \"X6DVA\"`" != "" ]; then echo "tsmini.xml" elif [ "`echo $PRODUCT | grep -i \"X7DVL\"`" != "" ]; then echo "tsmini.xml" elif [ "`echo $PRODUCT | grep -i \"X7DAL\"`" != "" ]; then echo "systel.xml" else echo "other.xml"
use "echo -n" everywhere to avoid the \n in the filename
-- ciao, Uwe Gansert
Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug
-- 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
participants (2)
-
Jeromy Smith
-
Uwe Gansert