Ok, I will give the below a shot. Won't get to it today, but I will try it over the weekend. I was trying this on SP2. For now I got it working by using separate rules and just putting my rules in the correct order so the files are merged properly. Thanks, Renny Uwe Gansert wrote:
On Tuesday 13 September 2005 20:33, Joseph V Moss wrote:
I would have thought that the fix would have been incorporated by SP2.
BTW, I just took a closer look at the code and this is(!) fixed in SP2. I did a complete test, including disksize rules, by myself and it is working fine here. So, I can't say why it's not working for Reynold. I tried the following rule set and 1.xml + 2.xml are fetched. 3.xml is not on a SLES9 SP2. The shell script that handles the rule looks good. The disksize and memsize check are seperated in two different tests.
Reynold, please add Y2DEBUG=1 to your linuxrc parameter list and send me the y2log via eMail (not to the list, it's too huge for the mailinglist).
<rule> <disksize> <match>/dev/hda 1000</match> <match_type>greater</match_type> </disksize> <result> <profile>1.xml</profile> <continue config:type="boolean">true</continue> </result> </rule> <rule> <disksize> <match>/dev/hda 1000</match> <match_type>greater</match_type> </disksize> <memsize> <match>1000</match> <match_type>greater</match_type> </memsize> <result> <profile>2.xml</profile> <continue config:type="boolean">true</continue> </result> </rule> <rule> <disksize> <match>/dev/hda 1000</match> <match_type>greater</match_type> </disksize> <memsize> <match>5000</match> <match_type>greater</match_type> </memsize> <result> <profile>3.xml</profile> <continue config:type="boolean">true</continue> </result> </rule>