Timing issue with scripts (GRUB/10-setup runs last)
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.
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
> > 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)
> 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
Senior Systems Administrator
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the linux-fai