Timing issue with scripts (GRUB/10-setup runs last)

Allison, Brad ballison at alertsite.com
Thu Dec 30 21:18:26 CET 2010


I don't think that would work because at the time it ran the current class
would be "GRUB" since it's running out of GRUB/20-fix_grub_menulst,  so the
logic would always return false for that if statement.

-b



On Thu, Dec 30, 2010 at 7:04 AM, Toomas Tamm <tt-fai at kky.ttu.ee> wrote:

> On Wed, Dec 29, 2010 at 03:32:08PM -0500, Allison, Brad wrote:
> > Since I couldn't find a nicer way around it, I added the following:
> >
> > 1- In my class scripts I have a script that touches
> /target/etc/class_name
> >
> > 2- I added a GRUB/20-fix_grub_menulst that looks for my
> > /target/etc/class_name and if it exists then it copies over my menu.lst.
>
> How about
>
> if ifclass SPECIAL_CLIENT ; then
>    (do the special stuff)
> fi
>
> inside the GRUB/20-fix_grub_menulst ?
>
> Then the script would run on all hosts, but performs no action unless
> the client belongs to the SPECIAL_CLIENT class.
>
> Toomas Tamm
>
>


-- 
Brad Allison
Senior Systems Administrator
AlertSite.com
954-312-0188 x214
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20101230/8d7a1fee/attachment.html>


More information about the linux-fai mailing list