On Wed, Apr 06, 2011 at 09:00:15AM -0400, Kent A. Reed 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?
Yes, that should work, if we have the syntax to make it only search out rtai kernels. The leftover duplicate entries in grub.cfg are a little bit bit ugly, though. 10_linux could be tweaked to omit rtai kernels, perhaps. That said, at: http://ubuntuforums.org/showthread.php?t=1287602 they say: "Before you get too deep into editing these scripts, remember you can also simply create a custom menu in which you can use your own titles, include or omit boot options, etc. See meierfra's page for creating a custom menu." "include or omit boot options"? Hey, that could be what Ed needs, in just the right vanilla flavour. (I suspect.) <Don't look> At the top of the first webpage, there's mention of a GUI utility to do this stuff. It claims to allow setting of kernel parameters, but not whether they can differ across kernels. ;-) </Don't look> Erik -- One man's constant is another man's variable. - A.J. Perlis ------------------------------------------------------------------------------ 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