Rules.XML and nested rules
Hi, We currently have a PXE based build environment setup here with SuSE and autoyast for our 32bit workstations and it works great. Though now we are also adding 64bit workstations and need to fix the rules.xml file to support this. This is where our dilemma comes in. We basically would like to be able to setup the rules file with nested rules if that is possible so that we could basically have the following effect: if (workstation = 64bit) do if (hd size = a) profile = 64bit_a if (hd size = b) profile = 64bit_b .... etc ... else (workstation = 32bit) do if (hd size = a) profile = 32bit_a if (hd size = b) profile = 32bit_b ... etc ... Thus was messing around with the rules file and disovered this seems to be having issues. Here is the basic file: <?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> <arch> <match>x86_64</match> <match_type>exact</match_type> <rule> <disksize> <match>/dev/sda 100000</match> <match_type>lower</match_type> </disksize> <result> <profile>software_64bit_80GB_sda.xml</profile> <continue config:type="boolean">false</continue> </result> </rule> <rule> <disksize> <match>/dev/sda 200000</match> <match_type>lower</match_type> </disksize> <result> <profile>software_64bit_200GB_sda.xml</profile> <continue config:type="boolean">false</continue> </result> </rule> </arch> </rule> <rule> <arch> <match>i686</match> <match_type>exact</match_type> <rule> <disksize> <match>/dev/sda 100000</match> <match_type>lower</match_type> </disksize> <result> <profile>software_32bit_80GB_sda.xml</profile> <continue config:type="boolean">false</continue> </result> </rule> <rule> <disksize> <match>/dev/sda 200000</match> <match_type>lower</match_type> </disksize> <result> <profile>software_32bit_200GB_sda.xml</profile> <continue config:type="boolean">false</continue> </result> </rule> </arch> </rule> </rules> </autoinstall> If anyone has any idea, or even a better way for loading profiles, please let me know. Thanks Sascha
participants (1)
-
suse_list