On 29 November 2010 15:27, Nitesh Mistry <[email protected]> wrote:
> On Mon, Nov 29, 2010 at 01:53:45PM +0530, Alok Singh Mahor wrote: > > Hi all, > > my grub menu has 5 entries. grub.cfg has line set default="0" > > i want to change its value alternately on every restart from 0 to 4 and 4 > to > > 0 > > so I can get different default on grub menu everytime at startup. I think > I > > have to add few if/else to do this. but I am unable to do. please tell me > > how can I achieve this? > > Though I don't know exact answer to your question, I would like to remind > you that whatever changes you want to make, make them in > /etc/grub.d/00_header > file (after backing up the original file ofcourse). Otherwise all your > changes > will get wiped out the next time either you or the kernel upgrade routine > does > grub-update. > > grub-update automatically updates /boot/grub/grub.cfg using the values / > instructions in /etc/grub.d/* files > > Instead of the /etc/grub.d/00_header file, the set default option has to be changed from /etc/default/grub AFAIK ! Its the " GRUB_DEFAULT " column entry To the original poster: This wiki page: https://help.ubuntu.com/community/Grub2 along with this forum entry: http://ubuntuforums.org/showthread.php?t=1195275 should help you I guess :) -- Nandan Vaidya
-- ubuntu-in mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-in
