On Sat, Oct 17, 2009 at 09:50:13AM -0700, dutchguy69 wrote:
if [ "$CPU_TYPE" == " AMD Athlon(tm) 64 X2 Dual Core Processor 4400+" ];
I'd recommend using simple grep checks for some basics vs a complete == check as you're going to have to update every time you have any change in hw. Unless you're cool with that of course. :)
<rule> <custom> <script> </script> <match>*</match> <match_type>exact</match_type> </custom> <result> <profile>1055_init.autoyast</profile> <continue config:type="boolean">false</continue> </result> </rule>
Not sure that works. We have a default file we include and do it via: <rule> <memsize> <match>1</match> <match_type>greater</match_type> </memsize> <result> <profile>scripts.xml</profile> <continue config:type="boolean">true</continue> </result> </rule> This means any box with at least 1 meg (byte?) of ram.. so all. This is something I've using since sles9 though, and I don't think I ever tried what you did above.
autoyast: nfs://<ip-address>/<path>/ <-- question about profile location
That looks right. Assuming your referenced files the rules.xml outputs are in there, and rules/rules.xml is relative to there.
Above direct reference to rules file seems to work but not as expected. When I check the box I can see that in /tmp/profile/autoinst.xml I find a copy of my rules.xml file where I'm expecting a merged profile from my 1055_init.autoyast and host2.xml information
Check the /var/log/Yast/y2log file(s). They'll be VERY verbose showing the results of the rules steps, which file(s) it tries to copy and when. For example, it specifcially shows it copying the scripts.xml I ref above: 2009-10-15 00:09:04 <1> 10.46.16.84(3129) [YCP] autoinstall/io.ycp:180 Copy Command: /bin/cp /tmp/YaST2-03129-h399Sr/tmp_mount/scripts.xml /tmp/YaST2-03129-D4d8Xe/rules/scripts.xml Note that if using NFS or other network locations, it'll do everything relative from the path that autoyast: part points to, so you can't symlink from there to another path, unless it's below that one. I had that bite me in the past. Well, maybe with http it works, but with NFS it'll mount to the full path pointed to by autoyast: so it can't do a link like ../scripts/foo.xml in there. -- Mike Marion-Unix SysAdmin/Staff IT Engineer-http://www.qualcomm.com Homer: "Bless you boys." [He's saluting the men marching by in the parade] Marge: "Homer, those are ice cream men." [Homer tears up] Homer: "I know." ==>Simpsons -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org