HD Install :: Where is grub-set-default?
Hello,
I am trying to setup grub such that it can boot from a fallback entry. When booting, grub does a 'savedefault' but I don't see the default directory mentioned in the manual besides there isn't a grub-set-default that I was planning to put in opt/bootlocal.sh.
I was wondering if grub.dsl (0.95) would have what I need or am I missing something or should I be doing something different.
Thank you,
Prasad
Re: http://www.gnu.org/softwar....systems
Those entrys go in the menu.lst file of the /boot/grub directory
I do have the entries per the manual in the menu.lst file in the /boot/grub directory.
My menu.lst is something like this
----------------------------------------------
default saved
timeout 10
fallback 1
title A
....
....
savedefault fallback
title B
....
...
savedefault
-----------------------------------------------------
Per the above menu.lst file, the first time boot saves the default as 1 so the next time, title B will boot and it will keep booting B till the default is changed to 0. So, everytime the system is booted without any errors or problem, the grub-set-default 0 needs to be executed. the fallback 'B' will boot only if grub-set-default is not executed when an error occurs.
from Grub
1) the savedefault is not saved
from DSL
2) the grub-set-default is not present just in case the default file is hidden somewhere.
-Prasad
Maybe I'm not understandng what you are saying, but in DSL, any change in scripting gets written into the backup.tar.gz file. If you put it in filetool.lst, for example, the new version gets packed into that backup file.
Sorry for not expressing myself correctly doobit. I have corrected(edited) myself in my last post.
from Grub
1) the savedefault is not saved
from DSL
2) the grub-set-default is not present just in case the default file is hidden somewhere.
From the Grub changelog, it looks like grub versions after 06-20-04 have grub-set-default which actually creates the default file and which it is advised should be modified by it only.
thank you,
Prasad
Next Page...
original here.