From dutchguy69@yahoo.co.uk Sat Oct 17 16:49:05 2009 From: dutchguy69 To: autoinstall@lists.opensuse.org Subject: [opensuse-autoinstall] general rules question Date: Sat, 17 Oct 2009 17:50:13 +0100 Message-ID: <4AD9F5C5.5010604@yahoo.co.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5641409910852960511==" --===============5641409910852960511== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit I have a working autoyast install for 11.1 without using rules. Right now I would like to introduce rules but I do not seem to understand exactly how to make this work. The current install is done by supplying information for a linuxrc info file on the kernel command line info=nfs:////1055_init.linuxrc The info file has several parameters defined for network access, the install and the autoyast variable autoyast: nfs:////1055_init.autoyast <- this is my autoinst profile below the path I have created the rules directory which includes a rules .xml file with following content * exact @custom1@ true * exact 1055_init.autoyast false I have tried to change the autoyast parameter in the info file with the following values autoyast: nfs://// <-- question about profile location autoyast: nfs:////rules/ <-- question about profile location autoyast: nfs:////rules/rules.xml 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 I'm not sure exactly what I'm doing wrong and even after extensive check via google haven't found the right references. I've used http://forgeftp.novell.com/yast/doc/SL11.1/autoinstall/ for documentation but it is not giving me enough detail to solve above issue. Any input would be welcomed. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-autoinstall+help(a)opensuse.org --===============5641409910852960511==-- From mmarion@qualcomm.com Sun Oct 18 00:47:10 2009 From: Mike Marion To: autoinstall@lists.opensuse.org Subject: Re: [opensuse-autoinstall] general rules question Date: Sat, 17 Oct 2009 17:48:00 -0700 Message-ID: <20091018004800.GG14673@sunapee.qualcomm.com> In-Reply-To: <4AD9F5C5.5010604@yahoo.co.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8031018072427839811==" --===============8031018072427839811== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Sat, Oct 17, 2009 at 09:50:13AM -0700, dutchguy69 wrote: > if [ "$CPU_TYPE" =3D=3D " AMD Athlon(tm) 64 X2 Dual Core Processor 4400+" ]; I'd recommend using simple grep checks for some basics vs a complete =3D=3D c= heck as you're going to have to update every time you have any change in hw. Unless you're cool with that of course. :) > > > > * > exact > > > 1055_init.autoyast > false > > Not sure that works. We have a default file we include and do it via: 1 greater scripts.xml true 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://// <-- question about profile locat= ion 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 C= ommand: /bin/cp /tmp/YaST2-03129-h399Sr/tmp_mount/scripts.xml /tmp/YaST2-0312= 9-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. --=20 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." =3D=3D>Simpsons --=20 To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-autoinstall+help(a)opensuse.org --===============8031018072427839811==-- From dutchguy69@yahoo.co.uk Mon Oct 19 17:25:34 2009 From: dutchguy69 To: autoinstall@lists.opensuse.org Subject: Re: [opensuse-autoinstall] general rules question Date: Mon, 19 Oct 2009 18:26:37 +0100 Message-ID: <4ADCA14D.3010305@yahoo.co.uk> In-Reply-To: <4AD9F5C5.5010604@yahoo.co.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7027410229351381144==" --===============7027410229351381144== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit By using the y2log file I found that the rules were being processed but it seemed that when it was complaining it couldn't find any profile it was actually complaining about the fact that there was no active rule available. After changing the * to the memory size check it worked. Will need to work some more on this to understand how this is exactly working since the * was from an example I found on the net. dutchguy69 wrote: > I have a working autoyast install for 11.1 without using rules. Right > now I would like to introduce rules but I do not seem to understand > exactly how to make this work. > > The current install is done by supplying information for a linuxrc info > file on the kernel command line > > info=nfs:////1055_init.linuxrc > > The info file has several parameters defined for network access, the > install and the autoyast variable > > autoyast: nfs:////1055_init.autoyast <- this is > my autoinst profile > > below the path I have created the rules directory which includes a rules > .xml file with following content > > > > > > > xmlns:config="http://www.suse.com/1.0/configns"> > > > > > * > exact > > > @custom1@ > true > > > > > > * > exact > > > 1055_init.autoyast > false > > > > > > I have tried to change the autoyast parameter in the info file with the > following values > > autoyast: nfs://// <-- question about profile > location > > autoyast: nfs:////rules/ <-- question about > profile location > > autoyast: nfs:////rules/rules.xml > > 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 > > I'm not sure exactly what I'm doing wrong and even after extensive check > via google haven't found the right references. I've used > http://forgeftp.novell.com/yast/doc/SL11.1/autoinstall/ for > documentation but it is not giving me enough detail to solve above issue. > > Any input would be welcomed. > -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-autoinstall+help(a)opensuse.org --===============7027410229351381144==-- From mmarion@qualcomm.com Mon Oct 19 18:34:08 2009 From: Mike Marion To: autoinstall@lists.opensuse.org Subject: Re: [opensuse-autoinstall] general rules question Date: Mon, 19 Oct 2009 11:35:20 -0700 Message-ID: <20091019183519.GJ14673@sunapee.qualcomm.com> In-Reply-To: <4ADCA14D.3010305@yahoo.co.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3184829104067257549==" --===============3184829104067257549== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Mon, Oct 19, 2009 at 10:26:37AM -0700, dutchguy69 wrote: > available. After changing the * to the memory size check > it worked. Will need to work some more on this to understand how this is > exactly working since the * was from an example I found > on the net. Is that exactly how it was in the example you found? With the empty part? I'd think that's what confused it. Maybe just having that part be as simple as: Would at least give it something for the * part to actually match against. -- Mike Marion-Unix SysAdmin/Staff IT Engineer-http://www.qualcomm.com UNIX - live it,love it,fork() it ! -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-autoinstall+help(a)opensuse.org --===============3184829104067257549==-- From dutchguy69@yahoo.co.uk Sun Jul 25 23:11:02 2010 From: dutchguy69 To: autoinstall@lists.opensuse.org Subject: [opensuse-autoinstall] rules.xml within 11.3 Date: Mon, 26 Jul 2010 00:10:58 +0100 Message-ID: <4C4CC482.1040508@yahoo.co.uk> In-Reply-To: <4AD9F5C5.5010604@yahoo.co.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8235803374475333074==" --===============8235803374475333074== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit My working rules file which include 1 customer rule which worked fine for 11.1 does not seem to be working for 11.3 anymore. Within the 11.1 y2log-1 I can see the following lines 2010-07-25 17:26:51 <1> 162.61.5.251(3863) [YCP] AutoInstallRules.ycp:485 Writing rule script into /tmp/YaST2-03863-bYu6zP/rule_custom1 2010-07-25 17:26:51 <1> 162.61.5.251(3863) [YCP] AutoInstallRules.ycp:390 Bash return: if ( [ "1" = "1" ] ) ; then exit 0; else exit 1; fi ($["exit":0, "stderr":"", "stdout":""]) ($["custom1":"rules/1060_scan64-3200.xml"]) 2010-07-25 17:26:51 <1> 162.61.5.251(3863) [YCP] AutoInstallRules.ycp:397 file: @custom1@ 2010-07-25 17:26:51 <1> 162.61.5.251(3863) [YCP] AutoInstallRules.ycp:410 var: custom1 2010-07-25 17:26:51 <1> 162.61.5.251(3863) [YCP] AutoInstallRules.ycp:576 Final Profile name: rules/1060_scan64-3200.xml 2010-07-25 17:26:51 <1> 162.61.5.251(3863) [YCP] AutoInstallRules.ycp:390 Bash return: if ( [ "$memsize" -gt "1" ] ) ; then exit 0; else exit 1; fi ($["exit":0, "stderr":"", "stdout":""]) ($["custom1":"rules/1060_scan64-3200.xml", "memsize":2048]) 2010-07-25 17:26:51 <1> 162.61.5.251(3863) [YCP] AutoInstallRules.ycp:397 file: 1060_init.autoyast 2010-07-25 17:26:51 <1> 162.61.5.251(3863) [YCP] AutoInstallRules.ycp:410 var: 2010-07-25 17:26:51 <1> 162.61.5.251(3863) [YCP] AutoInstallRules.ycp:418 val: 1060_init.autoyast 2010-07-25 17:26:51 <1> 162.61.5.251(3863) [YCP] AutoInstallRules.ycp:576 Final Profile name: 1060_init.autoyast Within the 11.3 y2log-1 I can see the following lines 2010-07-25 18:51:28 <1> 162.61.5.251(3387) [YCP] AutoInstallRules.ycp:486 Writing rule script into /tmp/YaST2-03387-LfMSYn/rule_custom1 2010-07-25 18:51:28 <1> 162.61.5.251(3387) [YCP] AutoInstallRules.ycp:398 file: @custom1@ 2010-07-25 18:51:28 <1> 162.61.5.251(3387) [YCP] AutoInstallRules.ycp:411 var: custom1 2010-07-25 18:51:28 <1> 162.61.5.251(3387) [YCP] AutoInstallRules.ycp:419 val: @custom1@ 2010-07-25 18:51:28 <1> 162.61.5.251(3387) [YCP] AutoInstallRules.ycp:391 Bash return: if ( [ "1" = "1" ] ) ; then exit 0; else exit 1; fi ($["exit":0, "stderr":"", "stdout":""]) ($["custom1":""]) 2010-07-25 18:51:28 <1> 162.61.5.251(3387) [YCP] AutoInstallRules.ycp:579 Final Profile name: @custom1@ 2010-07-25 18:51:28 <1> 162.61.5.251(3387) [YCP] AutoInstallRules.ycp:398 file: 1061_init.autoyast 2010-07-25 18:51:28 <1> 162.61.5.251(3387) [YCP] AutoInstallRules.ycp:411 var: 2010-07-25 18:51:28 <1> 162.61.5.251(3387) [YCP] AutoInstallRules.ycp:419 val: 1061_init.autoyast 2010-07-25 18:51:28 <1> 162.61.5.251(3387) [YCP] AutoInstallRules.ycp:391 Bash return: if ( [ "$memsize" -gt "1" ] ) ; then exit 0; else exit 1; fi ($["exit":0, "stderr":"", "stdout":""]) ($["custom1":"", "memsize":2048]) 2010-07-25 18:51:28 <1> 162.61.5.251(3387) [YCP] AutoInstallRules.ycp:579 Final Profile name: 1061_init.autoyast Not sure whether the different sequencing is part of the issue or not. Clearly "Final Profile name: rules/1060_scan64-3200.xml" is not the same as "Final Profile name: @custom1@". Is this some different functionality in 11.3 or a bug or something I have overlooked maybe Any help is appreciated. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-autoinstall+help(a)opensuse.org --===============8235803374475333074==-- From ug@suse.de Mon Jul 26 12:51:44 2010 From: Uwe Gansert To: autoinstall@lists.opensuse.org Subject: Re: [opensuse-autoinstall] rules.xml within 11.3 Date: Mon, 26 Jul 2010 14:51:40 +0200 Message-ID: <201007261451.40532.ug@suse.de> In-Reply-To: <4C4CC482.1040508@yahoo.co.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9033615587003877518==" --===============9033615587003877518== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit on Monday 26 July 2010 dutchguy69 wrote: > My working rules file which include 1 customer rule which worked fine > for 11.1 does not seem to be working for 11.3 anymore. can I see your rules.xml? -- 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: "I Love 64" by mind.in.a.box -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-autoinstall+help(a)opensuse.org --===============9033615587003877518==--