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

Toomas Tamm tt-fai at kky.ttu.ee
Thu Dec 30 13:04:45 CET 2010

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)

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

More information about the linux-fai mailing list