Yes, I have the same problems when configuring e.g. cups ? security ? ntp ? with yast2 (autoinstll) under SuSE 9.1 professionell The typical error when valididating is: /tmp/YaST2-17090-CUEsyZ/valid.xml:112: element default: validity error : No declaration for element default <default></default> ^ /tmp/YaST2-17090-CUEsyZ/valid.xml:113: element printcap: validity error : Element printcap content does not follow the DTD, expecting (printcap_entry)+, got <printcap config:type="list"/> ^ /tmp/YaST2-17090-CUEsyZ/valid.xml:147: element security: validity error : No declaration for element security </security> ^ /tmp/YaST2-17090-CUEsyZ/valid.xml:155: element enable: validity error : No declaration for element enable <enable>1</enable> ^ /tmp/YaST2-17090-CUEsyZ/valid.xml:156: element index: validity error : No declaration for element index <index>0</index> ^ /tmp/YaST2-17090-CUEsyZ/valid.xml:157: element options: validity error : Element enable is not declared in options list of possible children </options> ^ /tmp/YaST2-17090-CUEsyZ/valid.xml:157: element options: validity error : Element index is not declared in options list of possible children </options> ^ /tmp/YaST2-17090-CUEsyZ/valid.xml:233: element sound: validity error : Element sound content does not follow the DTD, expecting (autoinstall , modules_conf , rc_vars , volume_settings), got (modules_conf rc_vars volume_settings ) </sound> ^ Moreover ... It seems as if, when those wrong configuration files are merged online (using classes) they are skipped which is resonable. However, when merging offline they survive. (I send another mail to that problem to suse-autoinstall) F.Mueller Maybe it is a good idea doing only minium with autoyast and the other with post script as you propose. But the better way would be a functioning yast2 xml editor createing valid configuration files. Mike Rose wrote:
Yup, I had one of these problems as well (answer below). You should be able to edit the xml file and just keep on trying the validation (annoying as you have to keep opening the xml file each time you edit it). Tip: when editing the xml file (using vi, for example) copy it somewhere else first. the autoyast GUI seems to occassionally take a dislike to manually edited xml files and then not open them at all (no error, it just does not open them).
Quite frankly I am finding it better to keep the xml file small and to do most things using a post-install script.
Your uid problem can easily be a one-liner in a post install script, for example.
Mind you it does not seem to be all sweetness and light with post-install scripts as they seem to run in a rather odd env, that does not appear to be true sh (missing standard commands, etc.)
Mike Rose TCM & Biological Physics Computer Officer http://www.bio.phy.cam.ac.uk/ http://www.tcm.phy.cam.ac.uk/
On Wed, 30 Jun 2004, J. David Eisenberg wrote:
I have used the "autoinstall" feature of YaST to create a profile, and then try to validate it. It comes back with the following errors. Shouldn't it create a valid profile, especially as I have no way of choosing the window manager. This is under SuSE 9.1 professional.
=========== /tmp/YaST2-03550-TVAnDd/valid.xml:89: element security: validity error : No declaration for element security </security> ^ /tmp/YaST2-03550-TVAnDd/valid.xml:102: element uid: validity error : No declaration for element uid <uid>1000</uid> ^ /tmp/YaST2-03550-TVAnDd/valid.xml:127: element window_manager: validity error : No declaration for element window_manager <window_manager>kde</window_manager> ^ /tmp/YaST2-03550-TVAnDd/valid.xml:128: element x11: validity error : Element x11 content does not follow the DTD, expecting (color_depth | configure_x11 | display_manager | enable_3d | monitor | resolution | start_x11)*, got (color_depth configure_x11 display_manager enable_3d monitor resolution window_manager ) </x11>
you need to change window_manager to display_manager in the start and end XML tags: <display_manager>kde</display_manager>
^
-- J. David Eisenberg http://catcode.com/
-- To unsubscribe, e-mail: suse-autoinstall-unsubscribe@suse.com For additional commands, e-mail: suse-autoinstall-help@suse.com
-- Dipl. Phys. F.Mueller EPCOS AG Surface Acoustic Wave Components Division SAW RD CAD P.O. Box 80 17 09 Phone: ++49 89 636 23316 D-81617 Munich Fax: ++49 89 636 27304 Germany mailto: Folkhard.Mueller@epcos.com Web: http://www.epcos.com