On Wednesday, April 06, 2011 01:04:20 PM Kent A. Reed did opine:

> On 4/6/2011 7:28 AM, Erik Christiansen wrote:
> > ...
> > That would rely on the fact that we do not output to stdout, so that
> > if grub-mkconfig ends without spontaneous output, there is nothing to
> > write to disk when grub-mkconfig closes its filedescriptor _after_
> > all the helper scripts, including ours, have run.
> > 
> > Safer ways to achieve boot parameter customisation are then:
> >     a) Append "sync" and editing snippet to update-grub, so that it
> >     runs
> >     
> >        after grub-mkconfig has done its stuff, and the file is written
> >        to disk. (We previously didn't sync.)
> >        
> >                 OR
> >     
> >     b) Put a wrapper around update-grub, so that our snippet lives in
> >     
> >        either ~/bin/update-grub or /usr/local/bin/update-grub, and we
> >        ensure in /etc/bash.bashrc that the chosen directory is first
> >        in $PATH. (Avoids modifying any grub stuff.)
> >        
> >                 OR
> >     
> >     c) Modify the update-grub stub, to redirect output to our script,
> >     
> >        which in turn redirects to /boot/grub/grub.cfg (Since
> >        /usr/local/bin/update-grub is just a wrapper around
> >        grub-mkconfig, make it do more useful work.)
> > 
> > Perhaps b) is the way to go?
> 
> I'm getting too old to want to play this game but doesn't it seem there
> is another alternative? Namely, insert another script to grub.d, call it
> 05_rtai, say, that adds the isocpus parameter just to rtai entries. If
> 10_linux results in the same kernels being entered later in the boot
> order with the standard parameters, so what?
> 
> Regards,
> Kent
> 
Now that seems to be a jolly good idea, why didn't I think of that? ;-)

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
<http://tinyurl.com/ddg5bz>
<http://www.cantrip.org/gatto.html>
A husband is what is left of the lover after the nerve has been extracted.
                -- Helen Rowland

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to