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