Erik Christiansen wrote:
> On Mon, Apr 04, 2011 at 09:51:20AM -0400, Tom Easterday wrote:
>    
>> On Apr 4, 2011, at 9:22 AM, Tom Easterday wrote:
>>      
>>> Your instructions didn't work for me (I am on 10.04).  I assume it is due 
>>> to the above.  Looks like the lines start with "linux" not kernel....?  See 
>>> attached snipped from Grub.cfg.
>>>        
>> Hmm, I tried substituting "linux" for "kernel" and that didn't work either.  
>> I changed the mv to cp at the end to see if the script would leave something 
>> in /tmp but nothing is there....
>>      
> Thanks for the grub.cfg sample. The problem was that menu.lst had no
> leading whitespace on the kernel command line, while grub.cfg does.
> Removing the "^" (anchor to start of line) allows your "linux"
> substitution to do the job.
>
> Here is the script snippet, updated for your sample grub.cfg, but
> with a leading #!/bin/bash , so that it can be run by itself (after
> doing a chmod a+x on it), to test it at your end.
>    
[big snip]

Note that with grub2, ie Ubuntu 10.04, there is a directory of files 
which are executed in order whenever grub is reconfigured.  It looks 
like the output of those files is concatenated, or the config file is 
piped from one to the next (I'm not sure of the actual mechanism).  In 
any case, you can make a filter script like this and add it as a 
separate executable file in /etc/default/grub/.  This is preferable to 
editing update-grub since the changes will be preserved through updates 
to grub.

This is all described in reasonable detail at the link I posted above, 
<http://ubuntuforums.org/showthread.php?t=1195275>.
- Steve

------------------------------------------------------------------------------
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