From fsteiner-mail1@bio.ifi.lmu.de Mon Feb 11 12:18:59 2008 From: Frank Steiner To: autoinstall@lists.opensuse.org Subject: [opensuse-autoinstall] custom rules Date: Mon, 11 Feb 2008 13:19:25 +0100 Message-ID: <47B03D4D.5030208@bio.ifi.lmu.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0630199466677047501==" --===============0630199466677047501== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi, I need to match against some hostnames for selecting a profile. I have sth. like * exact profiles/part_(a)custom1@_keep.xml true But now I want to select one profile for 10 certain hostnames. How can I do that in an elegant way? What I can do is rewrite the ... part 10 times and AY will redo that script 10 times. But since AY saves the value of "$custom1" while working on rules.xml (seenin y2log), it should be possible to reuse the determined value instead of redefining it over and over again. However, turing ... redefines $custom1 to "" instead of working on the former value. Is it possible to re-use the value for custom1 when a former rule has defined it to some value? If not, I vote for adding this feature! cu Frank -- Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. * -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-autoinstall+help(a)opensuse.org --===============0630199466677047501==-- From mmarion@qualcomm.com Mon Feb 11 23:15:27 2008 From: Mike Marion To: autoinstall@lists.opensuse.org Subject: Re: [opensuse-autoinstall] custom rules Date: Mon, 11 Feb 2008 15:15:37 -0800 Message-ID: <20080211231535.GD26190@cornholio.qualcomm.com> In-Reply-To: <47B03D4D.5030208@bio.ifi.lmu.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3325043790413667216==" --===============3325043790413667216== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Mon, Feb 11, 2008 at 01:19:25PM +0100, Frank Steiner wrote: > But now I want to select one profile for 10 certain hostnames. How can > I do that in an elegant way? If it's not too hard to do it at boot time, rather then trying to script it to know specific hostnames, and then having to update the script anytime that list changed, you could just add some keyword on the kernel cmdline to trigger your special thing and do that. Could do something like.. Add to cmdline: dospecial Do something in script like: * exact profiles/part_(a)custom1@_keep.xml true Assuming that you wanted the same special profile file for all of the matching hosts. Could also do a custom2 or append something onto hostname for @custom1@ value. We do come initial disk slicing profiles and such like this.. using a profile= in cmdline. We also pass the hostname via host=. You can add what you want to cmdline as long as you don't clash with any existing keywords of course. And if you're on sles/sled10-sp1+ they included the kernel patches to allow 2048 characters on cmdline vs the old 256 char default (which is a lot shorter then you might think). I actually patched the same patch into our sles9-sp3 installs because it was very helpful being able to pass our long nfs mount paths for both autoyast= and install= on the cmdline. -- Mike Marion-Unix SysAdmin/Staff IT Engineer-http://www.qualcomm.com George: "You don't work in the rain? You're a mailman... Neither Rain, nor sleet, nor sno-IT'S THE FIRST ONE!" ==> Seinfeld -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-autoinstall+help(a)opensuse.org --===============3325043790413667216==-- From fsteiner-mail1@bio.ifi.lmu.de Tue Feb 12 08:56:53 2008 From: Frank Steiner To: autoinstall@lists.opensuse.org Subject: Re: [opensuse-autoinstall] custom rules Date: Tue, 12 Feb 2008 09:57:27 +0100 Message-ID: <47B15F77.40800@bio.ifi.lmu.de> In-Reply-To: <20080211231535.GD26190@cornholio.qualcomm.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3462362185100967327==" --===============3462362185100967327== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Mike Marion wrote > On Mon, Feb 11, 2008 at 01:19:25PM +0100, Frank Steiner wrote: > >> But now I want to select one profile for 10 certain hostnames. How can >> I do that in an elegant way? > > If it's not too hard to do it at boot time, rather then trying to script > it to know specific hostnames, and then having to update the script > anytime that list changed, you could just add some keyword on the kernel > cmdline to trigger your special thing and do that. That would mean different pxelinux.cfg stuff for different hosts. > Do something in script like: > > >