[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: grub savedefault?



On Mon, May 24, 2010 at 4:24 PM, Andrei Popescu
<andreimpopescu@gmail.com> wrote:
> On Sun,23.May.10, 19:52:17, Celejar wrote:
>> On Sun, 23 May 2010 15:56:13 -0700
>> "Todd A. Jacobs" <nospam@codegnome.org> wrote:
>>
>> > When one has multiple kernels installed, where is one supposed to
>> > configure the option to always boot the last-selected kernel? I can't
>> > make sense of all the automatic over-writing that the grub scripts are
>> > doing on Debian, and the /etc/default/grub file doesn't have an example
>> > of what the scripts are looking for.
> ...
>> What seems to work for me (and I agree, it's pretty confusing,
>> especially when you add 'man grub-set-default' to the mix) is to
>> include these three lines in menu.lst:
>
> [snip]
>
> That's grub1, but the OP was asking about grub2 (/etc/default/grub).

Oops. I also gave grub1 advice...

For grub2, set "GRUB_DEFAULT=saved" in "/etc/default/grub", run
"update-grub", and run "grub-set-default x" (where x is the default
entry from which you want to boot and the count starts at 0).


Reply to: