Grub feature request?

Les Mikesell lesmikesell at gmail.com
Thu Jan 3 21:36:52 UTC 2008


Mikkel L. Ellertson wrote:
> Daniel B. Thurman wrote:
>> Is it possible to have the Grub gui (when it comes up)
>> to "remember" the last boot item chosen instead of
>> simply choosing the default?
>>
>> I wonder if this would be a neat feature?
>>
> One way to do it would be to add the "savedefault" at the end of
> each menu entry. (Or only the entries you want to be remembered.)
> 
>           title GNU/Linux
>           root (hd0,0)
>           kernel /boot/vmlinuz root=/dev/sda1
>           initrd /boot/initrd
>           savedefault
> 

It would be even nicer if it could keep track of attempts and successes, 
so that after a couple of attempts without success (i.e. an update 
installed a new kernel as the default but it fails to boot), it could 
drop back to an entry that had been successful previously.  That could 
help in headless situations or where the machine is remote and the best 
you can do is get someone else to punch the reset button.

-- 
   Les Mikesell
    lesmikesell at gmail.com




More information about the users mailing list