Timing issue with scripts (GRUB/10-setup runs last)
Allison, Brad
ballison at alertsite.com
Wed Dec 29 21:32:08 CET 2010
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.
That works and solves my problem, because it runs after GRUB/10-setup.
-b
On Wed, Dec 29, 2010 at 3:20 PM, Michael Tautschnig <mt at debian.org> wrote:
> > I guess a more simple question would be:
> >
> > How do I get my script to run AFTER the GRUB/10-setup script.
> >
> > Else, I'll have to add it to the GRUB class and I didn't want to do that
> > because I don't want this to run on all systems.
> >
>
> It seems that the class GRUB is defined after your desired classes. Now
> either
> you are using some class that is of too low priority or the definition of
> classes is simply screwed (which may well be true for the shipped simple
> examples).
>
> For one of my systems I have
>
> List of all classes: DEFAULT LINUX GRUB server LAST
>
> Therefore only the scripts in server/... and LAST/... will be executed
> after
> GRUB scripts.
>
> Hope this helps,
> Michael
>
>
--
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/20101229/949c1463/attachment.html>
More information about the linux-fai
mailing list